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

If stderr is redirected, don't send status messages there.

parent 67a048ee
Branches
Tags
No related merge requests found
......@@ -473,7 +473,10 @@ int main(int argc, char **argv, char** environ)
confp=stdout;
errfp=stderr;
nulfp=fopen(_PATH_DEVNULL,"w+");
statfp=stderr;
if(isatty(fileno(stderr)))
statfp=stderr;
else /* if redirected, don't send status messages to stderr */
statfp=nulfp;
branch.limit=JAVASCRIPT_BRANCH_LIMIT;
branch.yield_freq=JAVASCRIPT_YIELD_FREQUENCY;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment