Mercurial > emacs
changeset 11514:321726163a65
(create_process): Don't abort if can't reopen
pty_name in the child. Exit the child instead.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 24 Apr 1995 05:52:11 +0000 |
parents | 41e01a3ef4f0 |
children | 0ebfc7701ebf |
files | src/process.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Mon Apr 24 05:51:40 1995 +0000 +++ b/src/process.c Mon Apr 24 05:52:11 1995 +0000 @@ -1412,13 +1412,18 @@ close (xforkin); xforkout = xforkin = open (pty_name, O_RDWR, 0); + if (xforkin < 0) + { + write (1, "Couldn't open the pty terminal ", 31); + write (1, pty_name, strlen (pty_name)); + write (1, "\n", 1); + _exit (1); + } + #ifdef SET_CHILD_PTY_PGRP ioctl (xforkin, TIOCSPGRP, &pgrp); ioctl (xforkout, TIOCSPGRP, &pgrp); #endif - - if (xforkin < 0) - abort (); } #endif /* not UNIPLUS and not RTU */ #ifdef SETUP_SLAVE_PTY