Commit cfffbc35 authored by Niels Möller's avatar Niels Möller

(handle_nonblock_error): Ignore errno ENOTTY. For some

unknown reason, this happens on FreeBSD 5.

Rev: src/io.c:1.211
parent 26c93785
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment