[git commit] hush: fix a case when backgrounded cmd makes shell hang
Denys Vlasenko
vda.linux at googlemail.com
Wed Jun 3 12:37:30 UTC 2009
commit: http://git.busybox.net/busybox/commit/?id=6f22624a913e29c6a7088718bd3fd6052f917cc1
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Bayram Kurumahmut <kbayram at ubicom.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/hush.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/shell/hush.c b/shell/hush.c
index 1ad5fcd..de04c01 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -3505,6 +3505,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.0.6
More information about the busybox-cvs
mailing list