I have process A, which is doing a lot of `console.log`. Process B `process.spawn`s A, does `a.stdout.on('data', ...)`, but not all of A's output is actually making it to that callback. I think Node is exiting before its own buffers are flushed? Why and how do I make it stop?
-
-
This entire thing is just mind-blowingly bad.
-
It seems like `process.stdout.write('', () => process.stderr.write('', () => exit()))` might emulate "exit once stdout and stderr are flushed", but based on the description of the API, always immediately calling the callback when given an empty string would be valid behavior
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.