]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
worker shutdown: close the leaking uv handle
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 10 Dec 2018 15:14:02 +0000 (16:14 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 10 Dec 2018 16:10:48 +0000 (17:10 +0100)
daemon/main.c

index bbe10c6ec082c077b4dc9aed0f4c4c4962682ab9..4e3e379cf2d3b830fffe07ab525916618e7004c7 100644 (file)
@@ -461,6 +461,7 @@ static int run_worker(uv_loop_t *loop, struct engine *engine, fd_array_t *ipc_se
        if (sock_file) {
                unlink(sock_file);
        }
+       uv_close((uv_handle_t *)&pipe, NULL); /* Seems OK even on the stopped loop. */
        return kr_ok();
 }