Skip to content

Commit

Permalink
add maxBuffer to execFile and execFileSync
Browse files Browse the repository at this point in the history
  • Loading branch information
erezmce committed Nov 10, 2023
1 parent ba81330 commit d77caa6
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 d77caa6

Please sign in to comment.