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?
-
-
I'm sure there's a long discussion with reasoning and tradeoffs out there, but I'm baffled at how a language could have non-blocking/buffered IO by default and not make flushing part of the required API
- 3 more replies
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.