Permalink
Browse files

Fix bug with executor not being passed after crash

  • Loading branch information...
1 parent 246bc5f commit 22b58c84cdb1d5ab7ebc97ff5a103505ed28546f @zensatellite zensatellite committed Aug 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/supervisor.js
View
2 lib/supervisor.js
@@ -111,7 +111,7 @@ function startProgram (prog, exec) {
var child = exports.child = spawn(exec, [prog]);
child.stdout.addListener("data", function (chunk) { chunk && sys.print(chunk) });
child.stderr.addListener("data", function (chunk) { chunk && sys.debug(chunk) });
- child.addListener("exit", function () { startProgram(prog) });
+ child.addListener("exit", function () { startProgram(prog, exec) });
}
var timer = null, counter = -1, mtime = null;

0 comments on commit 22b58c8

Please sign in to comment.