php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #80992
Patch php-patch.patch revision 2021-04-27 08:05 UTC by vladimir at helesic dot cz

Patch php-patch.patch for FPM related Bug #80992

Patch version 2021-04-27 08:05 UTC

Return to Bug #80992 | Download this patch
Patch Revisions:

Developer: vladimir@helesic.cz

diff '--exclude=www.conf' '--exclude=configure' '--exclude=*.h' '--exclude=config.nice' -Naur php-7.3.26/sapi/fpm/fpm/fpm_children.c php-7.3.26.patched/sapi/fpm/fpm/fpm_children.c
--- php-7.3.26/sapi/fpm/fpm/fpm_children.c	2021-01-05 11:36:07.000000000 +0100
+++ php-7.3.26.patched/sapi/fpm/fpm/fpm_children.c	2021-04-23 09:23:40.213867923 +0200
@@ -150,6 +150,8 @@
 	fpm_globals.max_requests = wp->config->pm_max_requests;
 	fpm_globals.listening_socket = dup(wp->listening_socket);
 
+        fcntl(fpm_globals.listening_socket, F_SETFD, fcntl(fpm_globals.listening_socket, F_GETFD) | FD_CLOEXEC);
+
 	if (0 > fpm_stdio_init_child(wp)  ||
 	    0 > fpm_log_init_child(wp)    ||
 	    0 > fpm_status_init_child(wp) ||
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC