Commit 86c8ef3f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc: use SETMASK instead of BLOCK

We don't really want to inherit the blocked signal mask from our parent.
parent 1ea58b26
......@@ -160,7 +160,7 @@ int main( int i_argc, const char *ppsz_argv[] )
* Furthermore the handler must not be set to SIG_IGN (see above).
* We cannot pragmatically handle EINTR, short reads and short writes
* in every code paths (including underlying libraries). So we just
* block SIGCHLD in all threads, and dequeue it with sigwait() below. */
* block SIGCHLD in all threads, and dequeue it below. */
sigaddset (&set, SIGCHLD);
#ifdef HAVE_MAEMO
......@@ -171,7 +171,7 @@ int main( int i_argc, const char *ppsz_argv[] )
}
#endif
/* Block all these signals */
pthread_sigmask (SIG_BLOCK, &set, NULL);
pthread_sigmask (SIG_SETMASK, &set, NULL);
/* Note that FromLocale() can be used before libvlc is initialized */
const char *argv[i_argc + 4];
......
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