Browse files

Merge pull request #91 from davidmurdoch/master

Fix issue #90: `supervisor file.js` might hang
  • Loading branch information...
2 parents c87c08d + c0cdb87 commit 39f56fa1c3855112fda2d5c1973eb26d481c944f @iangreenleaf iangreenleaf committed Feb 17, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/cli-wrapper.js
View
3 lib/cli-wrapper.js
@@ -1,10 +1,11 @@
#!/usr/bin/env node
var path = require("path")
+ , fs = require("fs")
, args = process.argv.slice(1)
var arg, base;
do arg = args.shift();
-while ( arg !== __filename
+while ( fs.realpathSync(arg) !== __filename
&& (base = path.basename(arg)) !== "node-supervisor"
&& base !== "supervisor"
&& base !== "supervisor.js"

0 comments on commit 39f56fa

Please sign in to comment.