]> git.sesse.net Git - vlc/commitdiff
vlc: use SETMASK instead of BLOCK
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 3 Feb 2011 12:56:17 +0000 (14:56 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 3 Feb 2011 12:56:17 +0000 (14:56 +0200)
We don't really want to inherit the blocked signal mask from our parent.

bin/vlc.c

index 00da32c6451ea3b33080f53977e1834cc2e78bb8..2094cdc75498faeb1dad7591a6a5fa17f46c21ee 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -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];