Permalink
Browse files

Exit with correct code

Fixes #38

So when I run `fleet exec -- npm test` I can actually see when my tests fail!
  • Loading branch information...
1 parent 0f7a107 commit 1526c370f67771a927f2a9325eb141a4344407f8 @Raynos committed Oct 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/exec.js
View
@@ -71,7 +71,10 @@ function spawn (hub, opts) {
if (procs[proc.drone] !== proc.id) return;
console.log('(' + proc.drone + '#' + proc.id + ' exited)');
- if (--pending === 0) p.hub.close();
+ if (--pending === 0) {
+ p.hub.close();
+ process.exit(code);
+ }
});
});
});

0 comments on commit 1526c37

Please sign in to comment.