aboutsummaryrefslogtreecommitdiff
path: root/threadproc/unix
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2002-03-20 21:47:55 +0000
committerJeff Trawick <trawick@apache.org>2002-03-20 21:47:55 +0000
commit45e14c6b8cf6ee020a1ebc65cc19b94112c49c9b (patch)
treed6e216373db366480e0d36b9101ad3429d303181 /threadproc/unix
parentdc79c6186636afa9a6e1b841b6050fba6664e567 (diff)
downloadapr-45e14c6b8cf6ee020a1ebc65cc19b94112c49c9b.tar.gz
apr-45e14c6b8cf6ee020a1ebc65cc19b94112c49c9b.zip
add a comment distinguishing between SIGUSR2 and the synchronous
signals which we absolutely must avoid blocking git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix')
-rw-r--r--threadproc/unix/signals.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/threadproc/unix/signals.c b/threadproc/unix/signals.c
index e20cd9339..d53e60476 100644
--- a/threadproc/unix/signals.c
+++ b/threadproc/unix/signals.c
@@ -301,6 +301,14 @@ static void remove_sync_sigs(sigset_t *sig_mask)
#ifdef SIGTRAP
sigdelset(sig_mask, SIGTRAP);
#endif
+
+/* the rest of the signals removed from the mask in this function
+ * absolutely must be removed; you cannot block synchronous signals
+ * (requirement of pthreads API)
+ *
+ * SIGUSR2 is being removed from the mask for the convenience of
+ * Purify users (Solaris, HP-UX, SGI) since Purify uses SIGUSR2
+ */
#ifdef SIGUSR2
sigdelset(sig_mask, SIGUSR2);
#endif