File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ PHP NEWS
14
14
. Fixed bug #67081 (DOMDocumentType->internalSubset returns entire DOCTYPE tag,
15
15
not only the subset). (Anatol)
16
16
17
+ - FPM:
18
+ . Fixed bug #66908 (php-fpm reload leaks epoll_create() file descriptor).
19
+ (Julio Pintos)
20
+
17
21
?? ??? 2014, PHP 5.5.12
18
22
- Core:
19
23
. Fixed bug #61019 (Out of memory on command stream_get_contents). (Mike)
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ static struct fpm_event_module_s epoll_module = {
46
46
47
47
static struct epoll_event * epollfds = NULL ;
48
48
static int nepollfds = 0 ;
49
- static int epollfd = 0 ;
49
+ static int epollfd = -1 ;
50
50
51
51
#endif /* HAVE_EPOLL */
52
52
@@ -103,6 +103,10 @@ static int fpm_event_epoll_clean() /* {{{ */
103
103
free (epollfds );
104
104
epollfds = NULL ;
105
105
}
106
+ if (epollfd != -1 ) {
107
+ close (epollfd );
108
+ epollfd = -1 ;
109
+ }
106
110
107
111
nepollfds = 0 ;
108
112
You can’t perform that action at this time.
0 commit comments