From 94763831fb59701a30f7e55c8ce9258ddbeeff18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 27 May 2010 18:46:47 +0300 Subject: [PATCH] Force SIGCHLD to default handler ... so that waitpid() works even if our parent process ignores SIGCHLD (SIG_IGN is preserved across exec*()). --- bin/vlc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/vlc.c b/bin/vlc.c index 0f7218e632..a771424194 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -68,6 +68,8 @@ int main( int i_argc, const char *ppsz_argv[] ) * Note: this is NOT an excuse for not protecting against SIGPIPE. If * LibVLC runs outside of VLC, we cannot rely on this code snippet. */ signal (SIGPIPE, SIG_IGN); + /* Restore default for SIGCHLD in case parent ignores it. */ + signal (SIGCHLD, SIG_DFL); #ifdef HAVE_SETENV # ifndef NDEBUG -- 2.39.2