foreversd / forever-monitor

The core monitoring functionality of forever without the CLI
MIT License
1.16k stars 181 forks source link

On Windows, child processes are always spawned 'detached' #147

Open skleeschulte opened 7 years ago

skleeschulte commented 7 years ago

Is there a reason that on Windows child processes are always spawned 'detached'? See here: monitor.js, line 246-248

I want to quit the child process (tree) when my script with forever-monitor exits.

camposfyi commented 7 years ago

Right, why spawn it as detached? I have a script that will launch multiple APIs, but when I Ctrl+C on the terminal, the child processes stay alive.

campersau commented 7 years ago

These lines got added in https://github.com/foreverjs/forever-monitor/pull/62