Skip to content

Commit

Permalink
test: reap children when cluster-bind-twice fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tjfontaine committed May 6, 2013
1 parent 5037f9a commit a90dc41
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/simple/test-cluster-bind-twice.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,17 @@ if (!id) {
var b = fork(__filename, ['two']);

a.on('exit', function(c) {
if (c)
if (c) {
b.send('QUIT');
throw new Error('A exited with ' + c);
}
});

b.on('exit', function(c) {
if (c)
if (c) {
a.send('QUIT');
throw new Error('B exited with ' + c);
}
});


Expand Down

0 comments on commit a90dc41

Please sign in to comment.