Permalink
Browse files

Use process.execPath for spawn

  • Loading branch information...
1 parent c0ee8fa commit a29726f2b0219dfa5d8bafaf564c3e6e6debf9a4 @oleics committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tinyforever.js
View
@@ -53,7 +53,7 @@ Monitor.prototype.trySpawn = function() {
console.log('child exit');
});
} else {
- var child = spawn('node', this.args, {
+ var child = spawn(process.execPath, this.args, {
cwd: this.cwd,
env: this._getEnv()
}, function() {

0 comments on commit a29726f

Please sign in to comment.