Ignore SIGCHLD to ensure child processes are reaped automatically by the kernel.
Signed-off-by: 0xBat <[email protected]> --- doc/examples/avio_http_serve_files.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/examples/avio_http_serve_files.c b/doc/examples/avio_http_serve_files.c index 2aae3870c2..8a9bde57c7 100644 --- a/doc/examples/avio_http_serve_files.c +++ b/doc/examples/avio_http_serve_files.c @@ -31,6 +31,7 @@ #include <libavformat/avformat.h> #include <libavutil/opt.h> #include <unistd.h> +#include <signal.h> static void process_client(AVIOContext *client, const char *in_uri) { @@ -103,6 +104,7 @@ int main(int argc, char **argv) const char *in_uri, *out_uri; int ret, pid; av_log_set_level(AV_LOG_TRACE); + signal(SIGCHLD, SIG_IGN); if (argc < 3) { printf("usage: %s input http://hostname[:port]\n" "API example program to serve http to multiple clients.\n" -- 2.52.0.windows.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
