Project

General

Profile

lighttpd-bad-errno-check.diff

peto, 2008-10-31 21:23

View differences:

network_freebsd_sendfile.c (working copy)
109 109
					log_error_write(srv, __FILE__, __LINE__, "ssd", "sendfile: ", strerror(errno), errno);
110 110
					return NETWORK_STATUS_FATAL_ERROR;
111 111
				}
112
			}
113

  
114
			if (r == 0 && (errno != EAGAIN && errno != EINTR)) {
112
			} else if (r == 0) {
115 113
				/* We got an event to write but we wrote nothing
116 114
				 *
117 115
				 * - the file shrinked -> error