trentm/node-bunyan

Memory Leak: bunyan still running after piped process is killed on Linux

bblatnick32 opened this issue · 2 comments

Steps to Reproduce on Linux:

  1. Run tail -f on a file and pipe into bunyan
    For example: "tail -f /var/log/web-log.log | bunyan"
  2. Ctrl-C to kill tail.
  3. "ps aux | grep bunyan" shows bunyan still running.

Sorry instead of Ctrl-C....exit out of the tab. Start a new tab to run step 3

Interesting. This is happening only when I add a new stream like bunyan-elasticsearch-bulk.

Running stream.end() for each stream source works fine as a workaround for me.