# HG changeset patch # User Richard M. Stallman # Date 798702731 0 # Node ID 321726163a653f7aec6b692f381745cd2a7ffae4 # Parent 41e01a3ef4f06c06778688ddc82af347b83c9de6 (create_process): Don't abort if can't reopen pty_name in the child. Exit the child instead. diff -r 41e01a3ef4f0 -r 321726163a65 src/process.c --- 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