]> granicus.if.org Git - mutt/commitdiff
Re-set the list of blocked signals after the imap_keepalive stuff.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 1 Dec 1999 09:39:04 +0000 (09:39 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 1 Dec 1999 09:39:04 +0000 (09:39 +0000)
imap/util.c

index 4c31b109c121cf49243f755b317302cb3ed9e65e..4e98f46e0bfc1a0c23460467cc70f7e00bd7ecb3 100644 (file)
@@ -319,6 +319,7 @@ int imap_wait_keepalive (pid_t pid)
 {
   struct sigaction oldalrm;
   struct sigaction act;
+  sigset_t oldblocked;
   int rc;
 
   short imap_passive = option (OPTIMAPPASSIVE);
@@ -326,6 +327,8 @@ int imap_wait_keepalive (pid_t pid)
   set_option (OPTIMAPPASSIVE);
   set_option (OPTKEEPQUIET);
 
+  sigprocmask (SIG_BLOCK, NULL, &oldblocked);
+
   sigemptyset (&act.sa_mask);
   act.sa_handler = alrm_handler;
 #ifdef SA_INTERRUPT
@@ -348,6 +351,7 @@ int imap_wait_keepalive (pid_t pid)
   }
 
   sigaction (SIGALRM, &oldalrm, NULL);
+  sigprocmask (SIG_BLOCK, &oldblocked, NULL);
 
   unset_option (OPTKEEPQUIET);
   if (!imap_passive)