-
-
Save AvianFlu/ce20858d1bab6d553aec to your computer and use it in GitHub Desktop.
detached child processes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var spawn = require('child_process').spawn; | |
var child = spawn('node', ['server.js'], { | |
detached: true | |
}); | |
child.on('detached', function (pid) { | |
console.log('Child detached, pid: %d', pid); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment