Skip to content
Snippets Groups Projects
Commit a6e669db authored by rswindell's avatar rswindell
Browse files

More status output when re-running a module or returning a module-specified

exit_code.
parent b0fa4a8d
Branches
Tags
No related merge requests found
......@@ -763,6 +763,7 @@ int main(int argc, char **argv, char** environ)
char* omode="w";
int argn;
long result;
ulong exec_count=0;
BOOL loop=FALSE;
BOOL nonbuffered_con=FALSE;
......@@ -958,6 +959,9 @@ int main(int argc, char **argv, char** environ)
do {
if(exec_count++)
fprintf(statfp,"\nRe-running: %s\n", module);
recycled=FALSE;
if(!js_init(environ)) {
......@@ -968,6 +972,9 @@ int main(int argc, char **argv, char** environ)
result=js_exec(module,&argv[argn]);
if(result)
lprintf(LOG_ERR,"!Module set exit_code: %ld", result);
fprintf(statfp,"\n");
fprintf(statfp,"JavaScript: Destroying context\n");
JS_DestroyContext(js_cx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment