1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

follow up r1601943:

Each apr_pollset_poll modified *out_pfd, so we need to copy it.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1605307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Takashi Sato
2014-06-25 09:42:41 +00:00
parent 0c2094251f
commit eee719b59b

View File

@@ -1969,10 +1969,12 @@ static void * APR_THREAD_FUNC listener_thread(apr_thread_t * thd, void *dummy)
/* We only signal once per N sockets with this baton */
if (!(baton->signaled)) {
apr_pollfd_t *newpfd = apr_palloc(out_pfd->p, sizeof(apr_pollfd_t));
baton->signaled = 1;
*newpfd = *out_pfd;
te = event_get_timer_event(-1 /* fake timer */,
socket_callback_wrapper,
(apr_pollfd_t *)out_pfd,
newpfd,
0, /* don't insert it */
NULL /* no associated socket callback */);
/* remove other sockets in my set */