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()) {
|