changeset 13712:f4eb849fb233

(PTY_OPEN): Block SIGCHLD during openpty.
author Karl Heuer <kwzh@gnu.org>
date Wed, 13 Dec 1995 02:02:17 +0000
parents faa23b478802
children f85b6bd0f925
files src/m/alpha.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/m/alpha.h	Wed Dec 13 01:58:41 1995 +0000
+++ b/src/m/alpha.h	Wed Dec 13 02:02:17 1995 +0000
@@ -266,8 +266,11 @@
   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)