From 269de79fbfd47f65f1797fd6351702a8b406f85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 26 Feb 2014 18:14:14 -0800 Subject: [PATCH] src: spawn_sync should close handles upon exit When the exit callback is fired for the child process we should close the handle associated with it. --- src/spawn_sync.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc index de0d180e3b6..4876422bda1 100644 --- a/src/spawn_sync.cc +++ b/src/spawn_sync.cc @@ -1025,6 +1025,7 @@ void SyncProcessRunner::ExitCallback(uv_process_t* handle, int64_t exit_status, int term_signal) { SyncProcessRunner* self = reinterpret_cast(handle->data); + uv_close(reinterpret_cast(handle), NULL); self->OnExit(exit_status, term_signal); }