wok diff lighttpd/stuff/fastcgi_detach.patch @ rev 6875
Up: arora to 0.11.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 20 22:38:24 2010 +0000 (2010-10-20) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lighttpd/stuff/fastcgi_detach.patch Wed Oct 20 22:38:24 2010 +0000 1.3 @@ -0,0 +1,27 @@ 1.4 +--- src/mod_fastcgi.c 1.5 ++++ src/mod_fastcgi.c 1.6 ++@@ -937,6 +937,24 @@ 1.7 ++ close(fcgi_fd); 1.8 ++ } 1.9 ++ 1.10 ++ close(STDERR_FILENO); 1.11 ++ if(srv->errorlog_mode == ERRORLOG_FILE) 1.12 ++ dup2(srv->errorlog_fd, STDERR_FILENO); 1.13 ++ else { 1.14 ++ int fd = open("/dev/null", O_RDWR); 1.15 ++ dup2(fd, STDERR_FILENO); 1.16 ++ close(fd); 1.17 ++ } 1.18 ++ 1.19 ++ close(STDOUT_FILENO); 1.20 ++ if(srv->errorlog_mode == ERRORLOG_FILE) 1.21 ++ dup2(srv->errorlog_fd, STDOUT_FILENO); 1.22 ++ else { 1.23 ++ int fd = open("/dev/null", O_RDWR); 1.24 ++ dup2(fd, STDOUT_FILENO); 1.25 ++ close(fd); 1.26 ++ } 1.27 ++ 1.28 ++ /* we don't need the client socket */ 1.29 ++ for (i = 3; i < 256; i++) { 1.30 ++ close(i);