From 884df58b5a59dcce9dc98d9bdf988493ae440bf1 Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 4 May 2001 22:13:37 +0000 Subject: Larry's variant on Evin Robertson's fix to what I messed up trying to make job control work. This fix makes it so that hush doesn't error out when init hasn't set up job control, as in when init=/bin/sh git-svn-id: svn://busybox.net/trunk/busybox@2537 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/hush.c b/shell/hush.c index 976fa3805..b8e4a55c2 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -1185,7 +1185,7 @@ static int run_pipe_real(struct pipe *pi) pi->pgrp = 0; /* Check if we are supposed to run in the foreground */ - if (pi->followup!=PIPE_BG) { + if (interactive && pi->followup!=PIPE_BG) { if ((pi->pgrp = tcgetpgrp(ctty = 2)) < 0 && (pi->pgrp = tcgetpgrp(ctty = 0)) < 0 && (pi->pgrp = tcgetpgrp(ctty = 1)) < 0) -- cgit v1.2.3-55-g6feb