aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index b7f20ba36..3f1405d81 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -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 */
}