Commit 324a2db1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Force SIGCHLD to default handler

... so that waitpid() works even if our parent process ignores SIGCHLD
(SIG_IGN is preserved across exec*()).
(cherry picked from commit 94763831fb59701a30f7e55c8ce9258ddbeeff18)
parent 827fe05e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment