From a3908f47f1524ca82ddb0ea08dd7d8a5ab4c10e2 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 27 Apr 2012 16:54:28 +0200 Subject: [PATCH] child_process: hook up handle wrap to owning object --- lib/child_process.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/child_process.js b/lib/child_process.js index 67b9b5b9f5f..2e67ebce1c1 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -628,6 +628,8 @@ function ChildProcess() { this.killed = false; this._handle = new Process(); + this._handle.owner = this; + this._handle.onexit = function(exitCode, signalCode) { // // follow 0.4.x behaviour: