changeset 29810:4406a040b043

(sigblock): Redefined to pass a pointer as second argument to sigprocmask.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 20 Jun 2000 18:30:44 +0000
parents 88aa46c9dfde
children f3db799f7b1e
files src/s/isc4-0.h src/s/sco5.h
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/isc4-0.h	Tue Jun 20 18:28:07 2000 +0000
+++ b/src/s/isc4-0.h	Tue Jun 20 18:30:44 2000 +0000
@@ -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 */
--- a/src/s/sco5.h	Tue Jun 20 18:28:07 2000 +0000
+++ b/src/s/sco5.h	Tue Jun 20 18:30:44 2000 +0000
@@ -132,7 +132,9 @@
 /* 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)