# HG changeset patch # User Gerd Moellmann # Date 961525864 0 # Node ID f3db799f7b1e67e41c3d7f0f17e53d74450e1da8 # Parent 4406a040b0436ebd8ff164e7d8dd557c82e8ddb7 (sigblock, sigunblock) [USG5_4]: Set sigprocmask_set, and pass a pointer to it to sigprocmask. diff -r 4406a040b043 -r f3db799f7b1e src/syssignal.h --- a/src/syssignal.h Tue Jun 20 18:30:44 2000 +0000 +++ b/src/syssignal.h Tue Jun 20 18:31:04 2000 +0000 @@ -78,11 +78,17 @@ #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