]> git.eshelyaron.com Git - emacs.git/commitdiff
(PTY_OPEN): Block SIGCHLD during openpty.
authorKarl Heuer <kwzh@gnu.org>
Wed, 13 Dec 1995 02:02:17 +0000 (02:02 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 13 Dec 1995 02:02:17 +0000 (02:02 +0000)
src/m/alpha.h

index ef070198e80069f664324771aca0e7e355847e88..d113f8f32eb49389dc01a73a06764fc01309602b 100644 (file)
@@ -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)