mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
test: reap children when cluster-bind-twice fails
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user