php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch fix-inherited-socket-duplication-on-reload.patch for FPM related Bug #80024

Patch version 2020-08-27 04:32 UTC

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

Developer: syazov@plesk.com

--- sapi/fpm/fpm/fpm_sockets.c.orig	2020-08-25 16:01:23.051287118 +0700
+++ sapi/fpm/fpm/fpm_sockets.c	2020-08-27 10:42:01.611616596 +0700
@@ -89,6 +89,8 @@
 			}
 			setenv(envname, env_value + socket_set[i], 1);
 		}
+		sprintf(envname, "FPM_SOCKETS_%d", socket_set_count);
+		unsetenv(envname);
 		free(env_value);
 	}
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 06 03:01:29 2024 UTC