Home
last modified time | relevance | path

Searched refs:pollfds (Results 1 – 2 of 2) sorted by relevance

/PHP-7.3/sapi/fpm/fpm/events/
H A Dpoll.c80 if (!pollfds) { in fpm_event_poll_init()
88 pollfds[i].fd = -1; in fpm_event_poll_init()
94 free(pollfds); in fpm_event_poll_init()
112 if (pollfds) { in fpm_event_poll_clean()
113 free(pollfds); in fpm_event_poll_clean()
114 pollfds = NULL; in fpm_event_poll_clean()
204 if (pollfds[i].fd != -1) { in fpm_event_poll_add()
210 pollfds[i].fd = ev->fd; in fpm_event_poll_add()
211 pollfds[i].events = POLLIN; in fpm_event_poll_add()
260 pollfds[i].fd = -1; in fpm_event_poll_remove()
[all …]
H A Ddevpoll.c50 static struct pollfd *pollfds = NULL; variable
87 pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init()
88 if (!pollfds) { in fpm_event_devpoll_init()
92 memset(pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init()
96 pollfds[i].fd = -1; in fpm_event_devpoll_init()
102 free(pollfds); in fpm_event_devpoll_init()
127 if (pollfds) { in fpm_event_devpoll_clean()
128 free(pollfds); in fpm_event_devpoll_clean()
129 pollfds = NULL; in fpm_event_devpoll_clean()

Completed in 6 milliseconds