Skip to content

Commit 56f6449

Browse files
committed
Thanks to the niallo:waitpid fixes, the SIGCHLD is automatically managed
1 parent 163a7ed commit 56f6449

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ var pty = require('pty.js');
77
var fs = require('fs');
88
var waitpid = require('waitpid');
99

10-
process.on('SIGCHLD', function(args){
11-
console.error((new Date()) + " Got SIGCHLD: waiting for child process to terminate ... ")
12-
waitpid(-1);
13-
console.error((new Date()) + " Child processed ended")
14-
});
15-
1610
var opts = require('optimist')
1711
.options({
1812
sslkey: {

0 commit comments

Comments
 (0)