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.
pull/5010/head
Saúl Ibarra Corretgé 2014-02-26 18:14:14 -08:00 committed by Timothy J Fontaine
parent afc29ed397
commit 269de79fbf
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}