summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/tcsh/sh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/tcsh/sh.c b/contrib/tcsh/sh.c
index 73b6d7f54832..f90eeab19423 100644
--- a/contrib/tcsh/sh.c
+++ b/contrib/tcsh/sh.c
@@ -1291,6 +1291,8 @@ main(int argc, char **argv)
/*
* Mop-up.
*/
+ /* Take care of these (especially HUP) here instead of inside flush. */
+ handle_pending_signals();
if (intty) {
if (loginsh) {
xprintf("logout\n");