- Version: v5.7.1
- Platform: Windows 7 64-bit
- Subsystem: Child Process
If I understand the doc right, this script must not wait for child process exit before own exit:
const cp = require('child_process');
const prc = cp.spawn('notepad', [], {detached: true});
prc.unref();
However it does wait.