Don't attempt to close file descriptor when not valid.
@@ -13355,10 +13355,12 @@ static void wsgi_hook_child_init(apr_pool_t *p, server_rec *s)
for (i = 0; i < wsgi_daemon_list->nelts; ++i) {
entry = &entries[i];
+ if (entry->listener_fd != -1) {
close(entry->listener_fd);
entry->listener_fd = -1;
}
}
+ }
#endif
/* Remember worker process ID. */
