Skip to content

Commit

Permalink
output error on status when node < 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 16, 2011
1 parent 2440f3a commit 8d1d2cc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/plugins/cli.js
Expand Up @@ -117,8 +117,13 @@ define('-s, --status, status', function(master){
var dir = master.pidfiles
, files = fs.readdirSync(dir);

console.log('status is temporarily disabled until a bug in node is fixed');
process.exit();
// null signal failed previous
// to this release
if (process.version < 'v0.4.1') {
console.log('status will not work with node < 0.4.1');
console.log('due to SIGTERM globbering the null signal');
process.exit(1);
}

console.log();

Expand Down

0 comments on commit 8d1d2cc

Please sign in to comment.