mirror of https://github.com/nodejs/node.git
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
parent
afc29ed397
commit
269de79fbf
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue