Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
afc549fd
Commit
afc549fd
authored
Jan 10, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(create_process): Set line discipline only if pty_flag.
parent
f920c441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/process.c
src/process.c
+7
-6
No files found.
src/process.c
View file @
afc549fd
...
...
@@ -1245,12 +1245,13 @@ create_process (process, new_argv, current_dir)
#endif
/* USG */
#endif
/* not HAVE_SETSID */
#ifdef NTTYDISC
{
/* Use new line discipline. */
int
ldisc
=
NTTYDISC
;
if
(
ioctl
(
xforkin
,
TIOCSETD
,
&
ldisc
)
<
0
)
write
(
1
,
"create_process/TIOCSETD failed
\n
"
,
31
);
}
if
(
pty_flag
)
{
/* Use new line discipline. */
int
ldisc
=
NTTYDISC
;
if
(
ioctl
(
xforkin
,
TIOCSETD
,
&
ldisc
)
<
0
)
write
(
1
,
"create_process/TIOCSETD failed
\n
"
,
31
);
}
#endif
#ifdef TIOCNOTTY
/* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you
...
...
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