HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d20b8af
)
(create_process): Don't abort if can't reopen
author
Richard M. Stallman
<rms@gnu.org>
Mon, 24 Apr 1995 05:52:11 +0000
(
05:52
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 24 Apr 1995 05:52:11 +0000
(
05:52
+0000)
pty_name in the child. Exit the child instead.
src/process.c
patch
|
blob
|
blame
|
history
diff --git
a/src/process.c
b/src/process.c
index
3d1ae0e
..
83de691
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-1412,13
+1412,18
@@
create_process (process, new_argv, current_dir)
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