php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #65398
Patch fpm-race-condition.patch revision 2013-08-06 06:54 UTC by gonzalo dot paniagua at gmail dot com

Patch fpm-race-condition.patch for FPM related Bug #65398

Patch version 2013-08-06 06:54 UTC

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

Developer: gonzalo.paniagua@gmail.com

diff --git sapi/fpm/fpm/events/epoll.c sapi/fpm/fpm/events/epoll.c
index c9c7f1f..3676816 100644
--- sapi/fpm/fpm/events/epoll.c
+++ sapi/fpm/fpm/events/epoll.c
@@ -140,7 +140,8 @@ static int fpm_event_epoll_wait(struct fpm_event_queue_s *queue, unsigned long i
 		}
 
 		/* fire the event */
-		fpm_event_fire((struct fpm_event_s *)epollfds[i].data.ptr);
+		if (epollfds[i].events != EPOLLHUP)
+			fpm_event_fire((struct fpm_event_s *)epollfds[i].data.ptr);
 
 		/* sanity check */
 		if (fpm_globals.parent_pid != getpid()) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC