aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/hush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index d82be3d70..e636f5829 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -914,9 +914,10 @@ static int check_and_run_traps(int sig)
914} 914}
915 915
916#if ENABLE_HUSH_JOB 916#if ENABLE_HUSH_JOB
917
917/* After [v]fork, in child: do not restore tty pgrp on xfunc death */ 918/* After [v]fork, in child: do not restore tty pgrp on xfunc death */
918#define disable_restore_tty_pgrp_on_exit() (die_sleep = 0) 919#define disable_restore_tty_pgrp_on_exit() (die_sleep = 0)
919/* After [v]fork, in parent: do not restore tty pgrp on xfunc death */ 920/* After [v]fork, in parent: restore tty pgrp on xfunc death */
920#define enable_restore_tty_pgrp_on_exit() (die_sleep = -1) 921#define enable_restore_tty_pgrp_on_exit() (die_sleep = -1)
921 922
922/* Restores tty foreground process group, and exits. 923/* Restores tty foreground process group, and exits.