diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-12-10 16:14:02 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-12-10 17:10:48 +0100 |
commit | 93d6d075a4683bc3450c7d21253f53ba471e214c (patch) | |
tree | 820b287a8dca2ef65c7a9f720fe706d92856b467 /daemon/main.c | |
parent | Merge branch 'fwd-upstream-ranking' into 'master' (diff) | |
download | knot-resolver-93d6d075a4683bc3450c7d21253f53ba471e214c.tar.xz knot-resolver-93d6d075a4683bc3450c7d21253f53ba471e214c.zip |
worker shutdown: close the leaking uv handle
Diffstat (limited to 'daemon/main.c')
-rw-r--r-- | daemon/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c index bbe10c6e..4e3e379c 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -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(); } |