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:
9323026
)
hush: code shrink
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 11 Oct 2015 19:47:11 +0000
(21:47 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 11 Oct 2015 19:47:11 +0000
(21:47 +0200)
function old new delta
builtin_wait 347 328 -19
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 0d107715fed69aa888d9829bb73165dd5510dc8a..eabe83ac63e33dbcfc87b765a3353fa83704e46c 100644
(file)
--- a/
shell/hush.c
+++ b/
shell/hush.c
@@
-9120,12
+9120,9
@@
static int FAST_FUNC builtin_wait(char **argv)
return EXIT_FAILURE;
}
if (waitpid(pid, &status, 0) == pid) {
+ ret = WEXITSTATUS(status);
if (WIFSIGNALED(status))
ret = 128 + WTERMSIG(status);
- else if (WIFEXITED(status))
- ret = WEXITSTATUS(status);
- else /* wtf? */
- ret = EXIT_FAILURE;
} else {
bb_perror_msg("wait %s", *argv);
ret = 127;