This repository was archived by the owner on May 22, 2025. It is now read-only.

Description
In my application I've done process.on('SIGINT', mySigintHandler) to cleanly exit the application when the current tasks have finished rather than killing the application immediately and leaving the tasks in an inconsistent state.
However, as soon as I do ctrl+c in the console, the application doesn't cleanly exit because ffmpeg is killed right away. The error messages I get depend on when exactly it's killed. A few examples
ffmpeg exited with code 1: /tmp/video100.mp4: Immediate exit requested
ffmpeg exited with code 1: /tmp/video100.mp4: Input/output error
ffmpeg exited with code 255: Press [q] to stop, [?] for help
How can I disable the automatic terminating of ffmpeg so that I can kill them from my SIGINT handler? This would be a useful feature to add if it's not possible currently.