Permalink
Browse files

- External monitors use bash instead of sh which does a better job cl…

…eaning up child processes on exit.

- Update minified nodeload.js
  • Loading branch information...
jonjlee committed Jan 30, 2012
1 parent 6773d66 commit 1cc1bd702434bf827dc22a6b86fd34201fcd2049
Showing with 6 additions and 6 deletions.
  1. +1 −1 lib/reporting/external.js
  2. +5 −5 nodeload.js
@@ -68,7 +68,7 @@ var monitorProcess = exports.monitorProcess = function(options) {
};
var format = options.dataFormatter || valuesToNumber;
- var proc = child_process.spawn('/bin/sh', ['-c', options.command], options.spawnOptions),
+ var proc = child_process.spawn('/bin/bash', ['-c', options.command], options.spawnOptions),
lr = new util.LineReader(proc.stdout);
lr.on('data', function (line) {
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 1cc1bd7

Please sign in to comment.