Browse Source

child process: don't send signal if process is already terminated

Fixes failing test test/simple/test-exec-max-buffer.js
v0.7.4-release
Ben Noordhuis 14 years ago
parent
commit
5a49522ba7
  1. 2
      lib/child_process_uv.js

2
lib/child_process_uv.js

@ -332,7 +332,7 @@ ChildProcess.prototype.kill = function(sig) {
throw new Error('Unknown signal: ' + sig); throw new Error('Unknown signal: ' + sig);
} }
if (!this.signalCode && !this.exitCode) { if (this._internal) {
var r = this._internal.kill(signal); var r = this._internal.kill(signal);
// TODO: raise error if r == -1? // TODO: raise error if r == -1?
} }

Loading…
Cancel
Save