Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
34f6d836
Commit
34f6d836
authored
Jan 02, 2001
by
Mike Hibler
Browse files
Arrrggghhhh!!!
Set non-blocking write the correct way this time!
parent
64641de9
Changes
1
Hide whitespace changes
Inline
Side-by-side
capture/capture.c
View file @
34f6d836
...
...
@@ -309,11 +309,10 @@ capture()
* I keep thinking (use threads) that there is a better way to do
* this (use threads). Hmm...
*/
n
=
FNDELAY
;
if
(
fcntl
(
ptyfd
,
F_SETFL
,
&
n
)
<
0
)
die
(
"fcntl(FNDELAY): %s"
,
Ptyname
,
geterr
(
errno
));
if
(
fcntl
(
devfd
,
F_SETFL
,
&
n
)
<
0
)
die
(
"fcntl(FNDELAY): %s"
,
Devname
,
geterr
(
errno
));
if
(
fcntl
(
ptyfd
,
F_SETFL
,
O_NONBLOCK
)
<
0
)
die
(
"fcntl(O_NONBLOCK): %s"
,
Ptyname
,
geterr
(
errno
));
if
(
fcntl
(
devfd
,
F_SETFL
,
O_NONBLOCK
)
<
0
)
die
(
"fcntl(O_NONBLOCK): %s"
,
Devname
,
geterr
(
errno
));
n
=
devfd
;
if
(
devfd
<
ptyfd
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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