@@ -438,7 +438,8 @@ module.exports = function(proto) {
438438 captureStdout : ! outputStream ,
439439 niceness : self . options . niceness ,
440440 cwd : self . options . cwd ,
441- windowsHide : true
441+ windowsHide : true ,
442+ signal : self . options . signal
442443 } ,
443444
444445 function processCB ( ffmpegProc , stdoutRing , stderrRing ) {
@@ -556,7 +557,7 @@ module.exports = function(proto) {
556557 async . each (
557558 flvmeta ,
558559 function ( output , cb ) {
559- spawn ( flvtool , [ '-U' , output . target ] , { windowsHide : true } )
560+ spawn ( flvtool , [ '-U' , output . target ] , { windowsHide : true , signal : self . options . signal } )
560561 . on ( 'error' , function ( err ) {
561562 cb ( new Error ( 'Error running ' + flvtool + ' on ' + output . target + ': ' + err . message ) ) ;
562563 } )
@@ -619,7 +620,7 @@ module.exports = function(proto) {
619620 if ( this . ffmpegProc ) {
620621 var logger = this . logger ;
621622 var pid = this . ffmpegProc . pid ;
622- var renice = spawn ( 'renice' , [ niceness , '-p' , pid ] , { windowsHide : true } ) ;
623+ var renice = spawn ( 'renice' , [ niceness , '-p' , pid ] , { windowsHide : true , signal : this . options . signal } ) ;
623624
624625 renice . on ( 'error' , function ( err ) {
625626 logger . warn ( 'could not renice process ' + pid + ': ' + err . message ) ;
0 commit comments