Skip to content

Commit 269de79

Browse files
saghultjfontaine
authored andcommitted
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.
1 parent afc29ed commit 269de79

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/spawn_sync.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,7 @@ void SyncProcessRunner::ExitCallback(uv_process_t* handle,
10251025
int64_t exit_status,
10261026
int term_signal) {
10271027
SyncProcessRunner* self = reinterpret_cast<SyncProcessRunner*>(handle->data);
1028+
uv_close(reinterpret_cast<uv_handle_t*>(handle), NULL);
10281029
self->OnExit(exit_status, term_signal);
10291030
}
10301031

0 commit comments

Comments
 (0)