* 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
}
#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];