]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix windows compile for libunbound subprocess reap comm point closes.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 2 Jan 2023 12:06:39 +0000 (13:06 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 2 Jan 2023 12:06:39 +0000 (13:06 +0100)
doc/Changelog
libunbound/libunbound.c

index b14cf1d55233345e577a40e501c311fe72232f17..cd225c523c57aed2ceb53a254ec2e1e68b5a8e01 100644 (file)
@@ -1,3 +1,6 @@
+2 January 2023: Wouter
+       - Fix windows compile for libunbound subprocess reap comm point closes.
+
 14 December 2022: George
        - Merge #569 from JINMEI Tatuya: add keep-cache option to
          'unbound-control reload' to keep caches.
index 225457e733822b65ff8b142fdc2f90692bba85ed..80a82bb47ddf9573327e3bd64159a4c874d92fc0 100644 (file)
@@ -311,6 +311,7 @@ ub_ctx_delete(struct ub_ctx* ctx)
         * it and only one should clean up, the one with getpid == pipe_pid.*/
        if(ctx->created_bg && ctx->pipe_pid != getpid()) {
                do_stop = 0;
+#ifndef USE_WINSOCK
                /* Stop events from getting deregistered, if the backend is
                 * epoll, the epoll fd is the same as the other process.
                 * That process should deregister them. */
@@ -322,6 +323,7 @@ ub_ctx_delete(struct ub_ctx* ctx)
                        ctx->rr_pipe->listen_com->event_added = 0;
                if(ctx->rr_pipe->res_com)
                        ctx->rr_pipe->res_com->event_added = 0;
+#endif
        }
        /* see if bg thread is created and if threads have been killed */
        /* no locks, because those may be held by terminated threads */