Browse Source

Thanks to the niallo:waitpid fixes, the SIGCHLD is automatically managed

pull/13/head
Luca Milanesio 10 years ago
parent
commit
56f6449173
  1. 6
      app.js

6
app.js

@ -7,12 +7,6 @@ var pty = require('pty.js');
var fs = require('fs'); var fs = require('fs');
var waitpid = require('waitpid'); var waitpid = require('waitpid');
process.on('SIGCHLD', function(args){
console.error((new Date()) + " Got SIGCHLD: waiting for child process to terminate ... ")
waitpid(-1);
console.error((new Date()) + " Child processed ended")
});
var opts = require('optimist') var opts = require('optimist')
.options({ .options({
sslkey: { sslkey: {

Loading…
Cancel
Save