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:
7b6e8f3
)
hush: remove superfluous comparison
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 14 Jul 2017 17:27:03 +0000
(19:27 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 14 Jul 2017 17:27:03 +0000
(19:27 +0200)
function old new delta
builtin_wait 291 285 -6
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 553c8e64a01341c8dcd673092f2a8636f19db34f..af5c260903b665358e1012e253ce530135486ed8 100644
(file)
--- a/
shell/hush.c
+++ b/
shell/hush.c
@@
-9967,7
+9967,7
@@
static int FAST_FUNC builtin_wait(char **argv)
/* No */
ret = 127;
if (errno == ECHILD) {
- if (
G.last_bg_pid > 0 &&
pid == G.last_bg_pid) {
+ if (pid == G.last_bg_pid) {
/* "wait $!" but last bg task has already exited. Try:
* (sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?
* In bash it prints exitcode 0, then 3.