From: Gerd Moellmann Date: Tue, 20 Jun 2000 18:30:44 +0000 (+0000) Subject: (sigblock): Redefined to pass a pointer as second X-Git-Tag: emacs-pretest-21.0.90~3178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6a9f1263c6c7911803f91058147d601d12a03848;p=emacs.git (sigblock): Redefined to pass a pointer as second argument to sigprocmask. --- 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)