wok diff lighttpd/stuff/fastcgi_detach.patch @ rev 25399

updated vim and vim-tiny (8.2.0664 -> 9.0.0133)
author Hans-G?nter Theisgen
date Tue Aug 02 14:18:25 2022 +0100 (2022-08-02)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lighttpd/stuff/fastcgi_detach.patch	Tue Aug 02 14:18:25 2022 +0100
     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);