Le solution:

DON't use .exec
Use .spawn

The function is bad, it's design is bad, it's behaviour is unpredictable, it can be replaced by .spawn, there is no fucking excuse for anyone to ever use it.

If you do like:

proc = child_process.exec(...genius code...)
proc.stdout.pipe(gloryhole)

It continues to flood its internal buffer even if you do not provide any callback where the buffer is meant to be used.
This function is fucking nuts!

Keep calm and 200KB is enough for everyone.

[ ]