diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-12-13 02:02:17 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-12-13 02:02:17 +0000 |
commit | cfbeebb056cf6dd903b04d00a77116cb42b955b5 (patch) | |
tree | 159a302b829a648f71c80075f84ed997fe78d2af /src/m/alpha.h | |
parent | 470d004ea58b7b8e7d833260fdfb421ced5ba8db (diff) | |
download | emacs-cfbeebb056cf6dd903b04d00a77116cb42b955b5.tar.gz |
(PTY_OPEN): Block SIGCHLD during openpty.
Diffstat (limited to 'src/m/alpha.h')
-rw-r--r-- | src/m/alpha.h | 3 |
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) |