1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-17 05:30:43 -08:00

(PTY_OPEN): Block SIGCHLD during openpty.

This commit is contained in:
Karl Heuer 1995-12-13 02:02:17 +00:00
parent 470d004ea5
commit cfbeebb056

View 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)