mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00

The core can be gracefully shutdown by sending a SIGINT to its process. However, this signal is also propagated to all child processes, i.e. the forked ffmpeg processes. They will also be stopped and might reconnect. This is not wanted. The core has to stop these processes. The child process will now get their own session ID with setsid() before replacing themselves with ffmpeg. This way they will not receive a SIGINT that was meant only for the parent.