← Commit list

caee80cd3

Denys Vlasenko
Denys Vlasenko
2016-10-25
SUCCESS Duration: 222s

Subject

ash: [SHELL] Move flushall to the point just before _exit

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+1 -1
@@ -13187,12 +13187,12 @@ exitshell(void)
evalstring(p, 0);
/*free(p); - we'll exit soon */
}
- flush_stdout_stderr();
out:
/* dash wraps setjobctl(0) in "if (setjmp(loc.loc) == 0) {...}".
* our setjobctl(0) does not panic if tcsetpgrp fails inside it.
*/
setjobctl(0);
+ flush_stdout_stderr();
_exit(status);
/* NOTREACHED */
}