From 5a49522ba77e1b7bc648fd7f09d54e9583fb22ac Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 4 Aug 2011 21:24:38 +0200 Subject: [PATCH] child process: don't send signal if process is already terminated Fixes failing test test/simple/test-exec-max-buffer.js --- lib/child_process_uv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/child_process_uv.js b/lib/child_process_uv.js index 00a43a0790d..6f3a40aa2a5 100644 --- a/lib/child_process_uv.js +++ b/lib/child_process_uv.js @@ -332,7 +332,7 @@ ChildProcess.prototype.kill = function(sig) { throw new Error('Unknown signal: ' + sig); } - if (!this.signalCode && !this.exitCode) { + if (this._internal) { var r = this._internal.kill(signal); // TODO: raise error if r == -1? }