[git commit] hush: fix a case when backgrounded cmd makes shell hang
Denys Vlasenko
vda.linux at googlemail.com
Wed Jul 22 09:19:33 UTC 2009
commit: http://git.busybox.net/busybox/commit/?id=6a98f95373d60d48001299797f52b1f19c7ffecd
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/1_14_stable
Signed-off-by: Bayram Kurumahmut <kbayram at ubicom.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
shell/hush.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/shell/hush.c b/shell/hush.c
index 3863077..8351590 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -3398,6 +3398,8 @@ static int checkjobs(struct pipe* fg_pipe)
#endif
return rcode;
}
+ if (!fg_pipe->alive_cmds)
+ return rcode;
}
/* There are still running processes in the fg pipe */
goto wait_more; /* do waitpid again */
--
1.6.3.3
More information about the busybox-cvs
mailing list