wok-6.x diff lighttpd/stuff/fastcgi_detach.patch @ rev 16581
ARM: add jack-audio-connection-kit, portaudio and espeak
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 04 04:42:11 2014 +0200 (2014-05-04) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lighttpd/stuff/fastcgi_detach.patch Sun May 04 04:42:11 2014 +0200 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);