php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #77934
Patch fpm_kill_USR2_7.3.4_77934 revision 2019-05-06 09:20 UTC by marc+bugsphp at cdmon dot com

Patch fpm_kill_USR2_7.3.4_77934 for FPM related Bug #77934

Patch version 2019-05-06 09:20 UTC

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

Developer: marc+bugsphp@cdmon.com

--- php-7.3.4/sapi/fpm/fpm/fpm_signals.c	2019-04-02 15:48:51.000000000 +0200
+++ php-7.3.4/sapi/fpm/fpm/fpm_signals.c.patch	2019-05-06 11:02:52.515735688 +0200
@@ -142,7 +142,7 @@
 	int saved_errno = errno;

 	/* closing fastcgi listening socket will force fcgi_accept() exit immediately */
-	close(0);
+	close(fpm_globals.listening_socket);
 	if (0 > socket(AF_UNIX, SOCK_STREAM, 0)) {
 		zlog(ZLOG_WARNING, "failed to create a new socket");
 	}
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 11 18:03:36 2022 UTC