version 1.1.1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2014/06/15 20:20:06
|
Line 230 int network_write_chunkqueue_writev(server *srv, conne
|
Line 230 int network_write_chunkqueue_writev(server *srv, conne
|
|
|
return -1; |
return -1; |
} |
} |
#ifdef FD_CLOEXEC | fd_close_on_exec(c->file.fd); |
fcntl(c->file.fd, F_SETFD, FD_CLOEXEC); | |
#endif | |
} |
} |
|
|
if (MAP_FAILED == (c->file.mmap.start = mmap(NULL, to_mmap, PROT_READ, MAP_SHARED, c->file.fd, c->file.mmap.offset))) { |
if (MAP_FAILED == (c->file.mmap.start = mmap(NULL, to_mmap, PROT_READ, MAP_SHARED, c->file.fd, c->file.mmap.offset))) { |
/* close it here, otherwise we'd have to set FD_CLOEXEC */ |
|
|
|
log_error_write(srv, __FILE__, __LINE__, "ssbd", "mmap failed:", |
log_error_write(srv, __FILE__, __LINE__, "ssbd", "mmap failed:", |
strerror(errno), c->file.name, c->file.fd); |
strerror(errno), c->file.name, c->file.fd); |
|
|
Line 273 int network_write_chunkqueue_writev(server *srv, conne
|
Line 269 int network_write_chunkqueue_writev(server *srv, conne
|
c->file.mmap.length, |
c->file.mmap.length, |
abs_offset, |
abs_offset, |
c->file.mmap.offset); |
c->file.mmap.offset); |
assert(toSend < 0); | force_assert(toSend < 0); |
} |
} |
|
|
if (toSend > max_bytes) toSend = max_bytes; |
if (toSend > max_bytes) toSend = max_bytes; |