Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4aa54ba8
Commit
4aa54ba8
authored
Apr 24, 1995
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(create_process): Don't abort if can't reopen
pty_name in the child. Exit the child instead.
parent
d20b8af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/process.c
src/process.c
+8
-3
No files found.
src/process.c
View file @
4aa54ba8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment