Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 269de79fbfd47f65f1797fd6351702a8b406f85a 1 parent afc29ed
@saghul saghul authored tjfontaine committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/
1  src/
@@ -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(reinterpret_cast<uv_handle_t*>(handle), NULL);
self->OnExit(exit_status, term_signal);
Please sign in to comment.
Something went wrong with that request. Please try again.