summaryrefslogtreecommitdiff
path: root/src/spawn_sync.cc
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <saghul@gmail.com>2014-02-26 18:14:14 -0800
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-02-26 18:16:07 -0800
commit269de79fbfd47f65f1797fd6351702a8b406f85a (patch)
tree07ae17a63d648cdbfed934a765f7be806201f65d /src/spawn_sync.cc
parentafc29ed397f71ff2ba4fa4518ab546b19123fece (diff)
downloadandroid-node-v8-269de79fbfd47f65f1797fd6351702a8b406f85a.tar.gz
android-node-v8-269de79fbfd47f65f1797fd6351702a8b406f85a.tar.bz2
android-node-v8-269de79fbfd47f65f1797fd6351702a8b406f85a.zip
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.
Diffstat (limited to 'src/spawn_sync.cc')
-rw-r--r--src/spawn_sync.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc
index de0d180e3b..4876422bda 100644
--- a/src/spawn_sync.cc
+++ b/src/spawn_sync.cc
@@ -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);
}