diff options
author | jfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68> | 2005-01-04 08:57:44 +0000 |
---|---|---|
committer | jfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68> | 2005-01-04 08:57:44 +0000 |
commit | 8655e61b5ddd3b734d5e64a6e60a2afe89e25ca9 (patch) | |
tree | 863261c567ae984e271908e0545d476d7ae65b5f /threadproc | |
parent | 1f7486716905538d9fbbc5c136143391f2cbbe6c (diff) | |
download | libapr-8655e61b5ddd3b734d5e64a6e60a2afe89e25ca9.tar.gz |
sigprocmask should be used instead pthread_sigmask on nothreaded platforms.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124075 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r-- | threadproc/unix/signals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/threadproc/unix/signals.c b/threadproc/unix/signals.c index 85b8ef053..7ecac1b97 100644 --- a/threadproc/unix/signals.c +++ b/threadproc/unix/signals.c @@ -409,7 +409,7 @@ APR_DECLARE(apr_status_t) apr_setup_signal_thread(void) sigfillset(&sig_mask); remove_sync_sigs(&sig_mask); -#if defined(SIGPROCMASK_SETS_THREAD_MASK) +#if defined(SIGPROCMASK_SETS_THREAD_MASK) || ! APR_HAS_THREADS if ((rv = sigprocmask(SIG_SETMASK, &sig_mask, NULL)) != 0) { rv = errno; } @@ -435,7 +435,7 @@ APR_DECLARE(apr_status_t) apr_signal_block(int signum) sigaddset(&sig_mask, signum); -#if defined(SIGPROCMASK_SETS_THREAD_MASK) +#if defined(SIGPROCMASK_SETS_THREAD_MASK) || ! APR_HAS_THREADS if ((rv = sigprocmask(SIG_BLOCK, &sig_mask, NULL)) != 0) { rv = errno; } @@ -462,7 +462,7 @@ APR_DECLARE(apr_status_t) apr_signal_unblock(int signum) sigaddset(&sig_mask, signum); -#if defined(SIGPROCMASK_SETS_THREAD_MASK) +#if defined(SIGPROCMASK_SETS_THREAD_MASK) || ! APR_HAS_THREADS if ((rv = sigprocmask(SIG_UNBLOCK, &sig_mask, NULL)) != 0) { rv = errno; } |