Commit Graph

7 Commits

Author SHA1 Message Date
Ingo Oppermann
480dbb7f53 Refactor cluster node code 2024-07-09 12:26:02 +02:00
Ingo Oppermann
88605a1f1e Put child processes in their own session
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.
2023-12-12 21:29:12 +01:00
Ingo Oppermann
ccecbe3c8e Improve FFmpeg skills testing 2023-07-06 21:41:10 +02:00
Ingo Oppermann
1ab09adc69 Untrack test binary 2022-08-17 16:20:10 +03:00
Ingo Oppermann
50deaef4d3 Wait for process to exit when stopping
If a process has some cleanup with purge-on-delete defined, the purge
has to wait until the process actually exited. Otherwise it may happen
that the process got the signal, files are purged, but the process is
still writing some files in order to exit cleanly. This would lead to
some artefacts left on the filesystem.
2022-08-17 15:13:17 +03:00
Ingo Oppermann
a211de9850 Remove print in tests 2022-06-24 19:49:53 +02:00
Ingo Oppermann
814e205ab5 Fix tests such that ffmpeg binary is not required 2022-06-24 19:47:12 +02:00