amino/amino-drone — pull request #5 by danmactough (2013-11-22 04:46:38+00:00)
Title: Don't emit exit unless the process is exiting.

Don't emit 'exit' when respawn is requested (as opposed to triggered on process exit) because the process has not exited. If we emit, the listener in ../index.js will delete the reference to this process and we'll never be able to stop it. Even if we manually kill the process, it will respawn!