Skip to content

Commit

Permalink
changes SIGTERM to SIGKILL for child processes.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-chiniquy committed May 14, 2012
1 parent 631a9ad commit aa54b36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
@@ -1,6 +1,9 @@
Changes
=======

* Change SIGTERM to SIGKILL for child processes.
[Robert Chiniquy]

* 11.05.2012 - v0.6.10:

* Add 'spy' functionality to the 'test' object.
Expand Down
2 changes: 1 addition & 1 deletion lib/process_runner/runner.js
Expand Up @@ -415,7 +415,7 @@ ProcessRunner.prototype._stopProcess = function(process, callback) {

if (!process.available_for_coverage) {
if (!process.kill_script) {
process.process.kill('SIGTERM');
process.process.kill('SIGKILL');
}
else {
exec(process.kill_script, function() {});
Expand Down
4 changes: 2 additions & 2 deletions lib/run.js
Expand Up @@ -126,7 +126,7 @@ TestRunner.prototype.runTests = function(testInitFile, chdir,
'timeout': true
};

child.kill('SIGTERM');
child.kill('SIGKILL');
self._handleTestResult(filePath, resultObj);
}

Expand Down Expand Up @@ -400,7 +400,7 @@ TestRunner.prototype.forceStop = function() {
child = testFileData['child'];
timeoutId = testFileData['timeout_id'];
clearTimeout(timeoutId);
child.kill('SIGTERM');
child.kill('SIGKILL');
}
}
};
Expand Down

0 comments on commit aa54b36

Please sign in to comment.