child_process: in a new `ChildProcess` set `killed` to false
authorMaciej Małecki <maciej.malecki@notimplemented.org>
Wed, 2 Nov 2011 16:52:47 +0000 (17:52 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 2 Nov 2011 17:17:51 +0000 (18:17 +0100)
This behavior is consistent with what v0.4 does.

lib/child_process.js

index 4812086..bb80ac1 100644 (file)
@@ -369,6 +369,7 @@ function ChildProcess() {
 
   this.signalCode = null;
   this.exitCode = null;
+  this.killed = false;
 
   this._internal = new Process();
   this._internal.onexit = function(exitCode, signalCode) {