wok diff lighttpd/stuff/fastcgi_detach.patch @ rev 14793
Normalize ownership and permissions: caps, catfish, cdparanoia-III-dev, cgames, chemtool.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 08 17:53:48 2013 +0300 (2013-07-08) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lighttpd/stuff/fastcgi_detach.patch Mon Jul 08 17:53:48 2013 +0300 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);