Skip to content

Commit

Permalink
Merge pull request #52 from erezmce/master
Browse files Browse the repository at this point in the history
add  maxBuffer to execFile and execFileSync
  • Loading branch information
ukoloff authored Nov 12, 2023
2 parents ba81330 + b5827ea commit d6470c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/fallback.ls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ require! <[ path child_process split ]>

var bin

execFileProperties =
maxBuffer: 1024 * 1024 * 1024

do function exe new-bin=\roots.exe
old = bin
bin := path.resolve __dirname, new-bin
Expand Down Expand Up @@ -34,7 +37,7 @@ export !function sync(args)
.on \end !->
callback!
.end do
child_process.exec-file-sync bin, args
child_process.exec-file-sync bin, args, execFileProperties

export !function async(args)
return {run, next, done}
Expand Down Expand Up @@ -76,7 +79,7 @@ export !function async(args)
resolver!

!function run callback
child_process.exec-file bin, args, ->
child_process.exec-file bin, args, execFileProperties, ->
.stdout
.pipe splitter callback
.on \end !->
Expand Down

0 comments on commit d6470c2

Please sign in to comment.