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:
parent
470d004ea5
commit
cfbeebb056
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue