Browse Source

vlc: use SETMASK instead of BLOCK

We don't really want to inherit the blocked signal mask from our parent.
pull/2/head
Rémi Denis-Courmont 15 years ago
parent
commit
86c8ef3fb2
  1. 4
      bin/vlc.c

4
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];

Loading…
Cancel
Save