Skip to content

Commit 22b58c8

Browse files
author
David Taylor
committed
Fix bug with executor not being passed after crash
1 parent 246bc5f commit 22b58c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/supervisor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function startProgram (prog, exec) {
111111
var child = exports.child = spawn(exec, [prog]);
112112
child.stdout.addListener("data", function (chunk) { chunk && sys.print(chunk) });
113113
child.stderr.addListener("data", function (chunk) { chunk && sys.debug(chunk) });
114-
child.addListener("exit", function () { startProgram(prog) });
114+
child.addListener("exit", function () { startProgram(prog, exec) });
115115
}
116116

117117
var timer = null, counter = -1, mtime = null;

0 commit comments

Comments
 (0)