Commit 6a9f1263 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(sigblock): Redefined to pass a pointer as second

argument to sigprocmask.
parent 0690cb37
......@@ -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 */
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment