[xiph-commits] r13407 - experimental/moritz/thread
moritz at svn.xiph.org
moritz at svn.xiph.org
Mon Jul 30 15:04:24 PDT 2007
Author: moritz
Date: 2007-07-30 15:04:23 -0700 (Mon, 30 Jul 2007)
New Revision: 13407
Modified:
experimental/moritz/thread/thread.c
Log:
More signals to catch and ignore. Sort.
Modified: experimental/moritz/thread/thread.c
===================================================================
--- experimental/moritz/thread/thread.c 2007-07-30 21:49:01 UTC (rev 13406)
+++ experimental/moritz/thread/thread.c 2007-07-30 22:04:23 UTC (rev 13407)
@@ -288,11 +288,13 @@
* These signals should only be accepted by the signal handling thread
* (main thread.)
*/
+ sigaddset(&ss, SIGCHLD);
sigaddset(&ss, SIGHUP);
- sigaddset(&ss, SIGCHLD);
sigaddset(&ss, SIGINT);
sigaddset(&ss, SIGPIPE);
sigaddset(&ss, SIGTERM);
+ sigaddset(&ss, SIGUSR1);
+ sigaddset(&ss, SIGUSR2);
if ((error = pthread_sigmask(SIG_UNBLOCK, &ss, NULL)) != 0)
_thread_fatal(error, "THREAD: pthread_sigmask()");
@@ -311,10 +313,11 @@
/*
* These are the only signals that sub-threads may receive.
*/
+ sigdelset(&ss, SIGBUS);
+ sigdelset(&ss, SIGFPE);
sigdelset(&ss, SIGKILL);
+ sigdelset(&ss, SIGSEGV);
sigdelset(&ss, SIGSTOP);
- sigdelset(&ss, SIGSEGV);
- sigdelset(&ss, SIGBUS);
if ((error = pthread_sigmask(SIG_BLOCK, &ss, NULL)) != 0)
_thread_fatal(error, "THREAD: pthread_sigmask()");
#endif /* !WIN32 */
More information about the commits
mailing list