Skip to content

Instantly share code, notes, and snippets.

@saghul
Created February 27, 2014 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saghul/9241791 to your computer and use it in GitHub Desktop.
Save saghul/9241791 to your computer and use it in GitHub Desktop.
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc
index de0d180..bf20ee3 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<SyncProcessRunner*>(handle->data);
+ uv_close((uv_handle_t*)handle, NULL);
self->OnExit(exit_status, term_signal);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment