Project

General

Profile

Bug #1813 ยป lighttpd-bad-errno-check.diff

peto, 2008-10-31 21:23

View differences:

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
    (1-1/1)