Closed gdgib-roche closed 8 months ago
Without this addition...
apt
waitFor()
Proposed (and tested) solution: simply empty the buffer as is commonly required when using process builder.
Technically we should do the same for stderr, but I had a hard time imagining it dumping that much to stderr and wanted to keep this change small
Without this addition...
apt
command has a lot of output (happens with proprietary, non-public packages)apt
command may fill it's standard output buffer, and hang waiting for buffer spacewaitFor()
call on line 213 (216 after this change) to never return, sinceapt
is waiting for this very code to empty the bufferProposed (and tested) solution: simply empty the buffer as is commonly required when using process builder.
Technically we should do the same for stderr, but I had a hard time imagining it dumping that much to stderr and wanted to keep this change small