Skip to content

Commit

Permalink
- External monitors use bash instead of sh which does a better job cl…
Browse files Browse the repository at this point in the history
…eaning up child processes on exit.

- Update minified nodeload.js
  • Loading branch information
jonjlee committed Jan 30, 2012
1 parent 6773d66 commit 1cc1bd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/reporting/external.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
10 changes: 5 additions & 5 deletions nodeload.js

Large diffs are not rendered by default.

0 comments on commit 1cc1bd7

Please sign in to comment.