... so that waitpid() works even if our parent process ignores SIGCHLD
(SIG_IGN is preserved across exec*()).
* 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);
* 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
#ifdef HAVE_SETENV
# ifndef NDEBUG