1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

Force SIGCHLD to default handler

... so that waitpid() works even if our parent process ignores SIGCHLD
(SIG_IGN is preserved across exec*()).
This commit is contained in:
Rémi Denis-Courmont 2010-05-27 18:46:47 +03:00
parent 1c02d8d5dd
commit 94763831fb

View File

@ -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