]> git.eshelyaron.com Git - emacs.git/commitdiff
(sigblock, sigunblock) [USG5_4]: Set
authorGerd Moellmann <gerd@gnu.org>
Tue, 20 Jun 2000 18:31:04 +0000 (18:31 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 20 Jun 2000 18:31:04 +0000 (18:31 +0000)
sigprocmask_set, and pass a pointer to it to sigprocmask.

src/syssignal.h

index 66e6ffa61fc09dcebe5bfa7614bdacd30248fca2..26e10edd5b9471a5ebb24e5bf3616041334a52c2 100644 (file)
@@ -78,11 +78,17 @@ sigset_t sys_sigsetmask P_ ((sigset_t new_mask));
 #else /* ! defined (POSIX_SIGNALS) */
 #ifdef USG5_4
 
+extern SIGMASKTYPE sigprocmask_set;
+
 #ifndef sigblock
-#define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL))
+#define sigblock(sig)                                  \
+     (sigprocmask_set = SIGEMPTYMASK | (sig),          \
+      sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL))
 #endif
 
-#define sigunblock(sig) (sigprocmask (SIG_SETMASK, SIGFULLMASK & ~(sig), NULL))
+#define sigunblock(sig)                                                \
+     (sigprocmask_set = SIGFULLMASK & ~(sig),                  \
+      sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL))
 
 #else
 #ifdef USG