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
emulab
emulab-devel
Commits
34f6d836
Commit
34f6d836
authored
Jan 02, 2001
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arrrggghhhh!!!
Set non-blocking write the correct way this time!
parent
64641de9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
capture/capture.c
capture/capture.c
+4
-5
No files found.
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
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