That's not a standalone reproduction. If you want to debug this, create a smaller example. In the process of doing so, you'll probably figure out what you are doing wrong. If not, someone will be able to help you by running your complete code.
Here I start 10 ffmpeg in parallel, at end, you can see I hit ctrl-c, and they all exit. % node ffmpeg.js ffmpeg -i http://127.0.0.1:38203 -v warning -an -y -update 1 1.jpg 0 'pid:' 26260 1 'pid:' 26261 2 'pid:' 26262 3 'pid:' 26263 4 'pid:' 26264 5 'pid:' 26265 6 'pid:' 26266 7 'pid:' 26267 8 'pid:' 26268 9 'pid:' 26269 new request! new request! new request! new request! new request! new request! new request! new request! new request! new request! http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested http://127.0.0.1:38203: Immediate exit requested my code: var spawn = require('child_process').spawn; var server = require('http').createServer(connection).listen(0); function connection(req) { console.log('new request!'); } server.on('listening', function() { var url = 'http://127.0.0.1:' + this.address().port; var args = [ '-i', url, '-v', 'warning', // '-preset', 'ultrafast', // '-threads', '2', // '-r', (1/3), '-an', '-y', '-update', '1', '1.jpg' ]; var ff = []; console.log('ffmpeg %s', args.join(' ')); for (var i = 0; i < 10; i++) { var c = spawn('ffmpeg', args, {stdio: 'inherit'}); ff.push(c); console.log(i, 'pid:', c.pid); } }); Cheers, Sam -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CACmrRmSODhF_5b9BbBpnWA9Zk81Dw%3DiewaS50Wz2-ytBRB6n0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
