From 6a9f1263c6c7911803f91058147d601d12a03848 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 20 Jun 2000 18:30:44 +0000 Subject: [PATCH] (sigblock): Redefined to pass a pointer as second argument to sigprocmask. --- src/s/isc4-0.h | 4 +++- src/s/sco5.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/s/isc4-0.h b/src/s/isc4-0.h index 14eb692ba13..53d0c07aea5 100644 --- a/src/s/isc4-0.h +++ b/src/s/isc4-0.h @@ -20,6 +20,8 @@ #ifndef SIG_BLOCK #define SIG_BLOCK 0 #endif -#define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL)) +#define sigblock(sig) \ + (sigprocmask_set = SIGEMPTYMASK | (sig), \ + sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL)) #endif #endif /* not POSIX_SIGNALS */ diff --git a/src/s/sco5.h b/src/s/sco5.h index a636b419973..89168b2068e 100644 --- a/src/s/sco5.h +++ b/src/s/sco5.h @@ -132,7 +132,9 @@ Boston, MA 02111-1307, USA. */ /* SCO Unix has Posix signals, but in 3.2.5 something broken that causes * all keyboard-quit signals to be lost after the first one. */ #undef POSIX_SIGNALS -#define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL)) +#define sigblock(sig) \ + (sigprocmask_set = SIGEMPTYMASK | (sig), \ + sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL)) #ifndef PENDING_OUTPUT_COUNT #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) -- 2.39.2