projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
295fef8
)
hush: fix a case when backgrounded cmd makes shell hang
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 3 Jun 2009 12:37:30 +0000
(14:37 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 3 Jun 2009 12:37:30 +0000
(14:37 +0200)
Signed-off-by: Bayram Kurumahmut <kbayram@ubicom.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index 1ad5fcd72f9fbec34f87effd60b2836058d80af6..de04c015a7f574f731440fb4b4a01c110e00b9b8 100644
(file)
--- 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 */