--- embedaddon/lighttpd/src/network_freebsd_sendfile.c 2013/10/14 10:32:48 1.1.1.1 +++ embedaddon/lighttpd/src/network_freebsd_sendfile.c 2014/06/15 20:20:06 1.1.1.2 @@ -151,9 +151,7 @@ int network_write_chunkqueue_freebsdsendfile(server *s return -1; } -#ifdef FD_CLOEXEC - fcntl(c->file.fd, F_SETFD, FD_CLOEXEC); -#endif + fd_close_on_exec(c->file.fd); } r = 0;