diff options
-rw-r--r-- | shell/lash.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/shell/lash.c b/shell/lash.c index 30cbe416e..e4b1b129f 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -1458,10 +1458,9 @@ static int busy_loop(FILE * input) int inbg; int status; #ifdef CONFIG_LASH_JOB_CONTROL - pid_t parent_pgrp; - - /* save current owner of TTY so we can restore it on exit */ - parent_pgrp = tcgetpgrp(shell_terminal); + pid_t parent_pgrp; + /* save current owner of TTY so we can restore it on exit */ + parent_pgrp = tcgetpgrp(shell_terminal); #endif newjob.job_list = &job_list; newjob.job_context = DEFAULT_CONTEXT; |