Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
cfffbc35
Commit
cfffbc35
authored
Nov 14, 2004
by
Niels Möller
Browse files
(handle_nonblock_error): Ignore errno ENOTTY. For some
unknown reason, this happens on FreeBSD 5. Rev: src/io.c:1.211
parent
26c93785
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/io.c
View file @
cfffbc35
...
...
@@ -1338,10 +1338,14 @@ handle_nonblock_error(const char *msg)
/* On BSD, trying to set /dev/null in nonblocking mode fails with
* errno 19, ENODEV. We have to ignore that.
*
* For now, still display a warning message, to keep track if when
* FreeBSD 5 seem to have a similar problem, sometimes returning
* ENOTTY. Not sure for what kind of fd:s that happen, though. The
* choice of errno code seems pretty odd to me.
*
* For now, still display a warning message, to keep track of when
* and where it occurs.
*/
if
(
errno
==
ENODEV
)
if
(
errno
==
ENODEV
||
errno
==
ENOTTY
)
werror
(
"%z %e
\n
"
,
msg
,
errno
);
else
fatal
(
"%z %e
\n
"
,
msg
,
errno
);
...
...
Write
Preview
Supports
Markdown
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