From 56f64491733ed86b27828788fa8d7cf41d05e076 Mon Sep 17 00:00:00 2001 From: Luca Milanesio Date: Wed, 25 Feb 2015 16:16:40 +0000 Subject: [PATCH] Thanks to the niallo:waitpid fixes, the SIGCHLD is automatically managed --- app.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app.js b/app.js index 87732fe..141306d 100644 --- a/app.js +++ b/app.js @@ -7,12 +7,6 @@ var pty = require('pty.js'); var fs = require('fs'); 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') .options({ sslkey: {