Browse Source

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.
v0.11.12-release
Saúl Ibarra Corretgé 11 years ago
committed by Timothy J Fontaine
parent
commit
269de79fbf
  1. 1
      src/spawn_sync.cc

1
src/spawn_sync.cc

@ -1025,6 +1025,7 @@ void SyncProcessRunner::ExitCallback(uv_process_t* handle,
int64_t exit_status, int64_t exit_status,
int term_signal) { int term_signal) {
SyncProcessRunner* self = reinterpret_cast<SyncProcessRunner*>(handle->data); SyncProcessRunner* self = reinterpret_cast<SyncProcessRunner*>(handle->data);
uv_close(reinterpret_cast<uv_handle_t*>(handle), NULL);
self->OnExit(exit_status, term_signal); self->OnExit(exit_status, term_signal);
} }

Loading…
Cancel
Save