Bug #1813 ยป lighttpd-bad-errno-check.diff
network_freebsd_sendfile.c (working copy) | ||
---|---|---|
log_error_write(srv, __FILE__, __LINE__, "ssd", "sendfile: ", strerror(errno), errno);
|
||
return NETWORK_STATUS_FATAL_ERROR;
|
||
}
|
||
}
|
||
if (r == 0 && (errno != EAGAIN && errno != EINTR)) {
|
||
} else if (r == 0) {
|
||
/* We got an event to write but we wrote nothing
|
||
*
|
||
* - the file shrinked -> error
|