Skip to content

Instantly share code, notes, and snippets.

@elarkin
Created September 19, 2011 19:36
Show Gist options
  • Save elarkin/1227360 to your computer and use it in GitHub Desktop.
Save elarkin/1227360 to your computer and use it in GitHub Desktop.
Child processes never exit
var child_process = require('child_process');
var child = child_process.fork('./slave.js');
child.on('exit', function() {console.log(1)})
process.removeAllListeners();
console.log("github won't allow empty files")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment