summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-12-01 12:06:31 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-12-01 12:06:31 +0000
commit4720a94874433f72170299b43c68091cfa8f874b (patch)
treec19c6cf976d397a691ea94f8dd5e5fdc9ee85aa0 /imap
parenteec48a2e58f93f758a6463aa7507cd35ecba333a (diff)
Now, I should have got the signal handling right.
Diffstat (limited to 'imap')
-rw-r--r--imap/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/imap/util.c b/imap/util.c
index 10db9460..81aef5f2 100644
--- a/imap/util.c
+++ b/imap/util.c
@@ -319,7 +319,7 @@ int imap_wait_keepalive (pid_t pid)
{
struct sigaction oldalrm;
struct sigaction act;
- sigset_t oldblocked;
+ sigset_t oldmask;
int rc;
short imap_passive = option (OPTIMAPPASSIVE);
@@ -327,7 +327,7 @@ int imap_wait_keepalive (pid_t pid)
set_option (OPTIMAPPASSIVE);
set_option (OPTKEEPQUIET);
- sigprocmask (SIG_BLOCK, NULL, &oldblocked);
+ sigprocmask (SIG_SETMASK, NULL, &oldmask);
sigemptyset (&act.sa_mask);
act.sa_handler = alrm_handler;
@@ -352,7 +352,7 @@ int imap_wait_keepalive (pid_t pid)
alarm (0); /* cancel a possibly pending alarm */
sigaction (SIGALRM, &oldalrm, NULL);
- sigprocmask (SIG_BLOCK, &oldblocked, NULL);
+ sigprocmask (SIG_SETMASK, &oldmask, NULL);
unset_option (OPTKEEPQUIET);
if (!imap_passive)