File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2628,7 +2628,10 @@ static void setup_threads_runtime(void)
2628
2628
clean_child_exit (APEXIT_CHILDFATAL );
2629
2629
}
2630
2630
2631
- /* Create the main pollset */
2631
+ /* Create the main pollset. When APR_POLLSET_WAKEABLE is asked we account
2632
+ * for the wakeup pipe explicitely with pollset_size+1 because some pollset
2633
+ * implementations don't do it implicitely in APR.
2634
+ */
2632
2635
pollset_flags = APR_POLLSET_THREADSAFE | APR_POLLSET_NOCOPY |
2633
2636
APR_POLLSET_WAKEABLE | APR_POLLSET_NODEFAULT ;
2634
2637
for (i = 0 ; i < sizeof (good_methods ) / sizeof (good_methods [0 ]); i ++ ) {
Original file line number Diff line number Diff line change @@ -909,7 +909,10 @@ static void setup_threads_runtime(void)
909
909
clean_child_exit (APEXIT_CHILDFATAL );
910
910
}
911
911
912
- /* Create the main pollset */
912
+ /* Create the main pollset. When APR_POLLSET_WAKEABLE is asked we account
913
+ * for the wakeup pipe explicitely with num_listensocks+1 because some
914
+ * pollset implementations don't do it implicitely in APR.
915
+ */
913
916
pollset_flags = APR_POLLSET_NOCOPY | APR_POLLSET_WAKEABLE ;
914
917
rv = apr_pollset_create (& worker_pollset , num_listensocks + 1 , pruntime ,
915
918
pollset_flags );
You can’t perform that action at this time.
0 commit comments