test: reap children when cluster-bind-twice fails

pull/1158/head
Timothy J Fontaine 2013-05-06 11:31:57 -07:00
parent 5037f9a5f4
commit a90dc41df2
1 changed files with 6 additions and 2 deletions

View File

@ -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);
}
});