Make sure child scripts are quit after specs are done.

This commit is contained in:
Cheng Zhao 2013-09-09 09:53:08 +08:00
parent a73aea3bda
commit ce487fe1da
2 changed files with 4 additions and 0 deletions

View file

@ -9,3 +9,6 @@ process.on('message', function(msg) {
child.on('message', function (msg) {
process.send(msg);
});
child.on('exit', function(code) {
process.exit(code);
});

View file

@ -1,3 +1,4 @@
process.on('message', function(msg) {
process.send(msg);
process.exit(0);
});