summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-12-13 02:02:17 +0000
committerKarl Heuer <kwzh@gnu.org>1995-12-13 02:02:17 +0000
commitd873f75a586edfb1a83696cde793edfd408ce2cc (patch)
tree225da049192a7ffe132bd2f8c64b6e56a5ca4573
parentb5cf1531d0119de8b46b7c0559971fb08b4d57b1 (diff)
downloademacs-d873f75a586edfb1a83696cde793edfd408ce2cc.tar.gz
(PTY_OPEN): Block SIGCHLD during openpty.
-rw-r--r--src/m/alpha.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/m/alpha.h b/src/m/alpha.h
index ef070198e80..d113f8f32eb 100644
--- a/src/m/alpha.h
+++ b/src/m/alpha.h
@@ -266,8 +266,11 @@ extern void r_alloc_free ();
do \
{ \
int dummy; \
+ SIGMASKTYPE mask; \
+ mask = sigblockx (SIGCHLD); \
if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
fd = -1; \
+ sigsetmask (mask); \
close (dummy); \
} \
while (0)