aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-14 19:27:03 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-14 19:27:03 +0200
commit0c5657e9119eb52263e83e9b55394a8f43f4e928 (patch)
treeffe9fed2297360e4cfc48938566e89fc169af1d9
parent7b6e8f3f1a8ea1ccf09b3dc20b6387eec9cdc55d (diff)
downloadbusybox-w32-0c5657e9119eb52263e83e9b55394a8f43f4e928.tar.gz
busybox-w32-0c5657e9119eb52263e83e9b55394a8f43f4e928.tar.bz2
busybox-w32-0c5657e9119eb52263e83e9b55394a8f43f4e928.zip
hush: remove superfluous comparison
function old new delta builtin_wait 291 285 -6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 553c8e64a..af5c26090 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -9967,7 +9967,7 @@ static int FAST_FUNC builtin_wait(char **argv)
9967 /* No */ 9967 /* No */
9968 ret = 127; 9968 ret = 127;
9969 if (errno == ECHILD) { 9969 if (errno == ECHILD) {
9970 if (G.last_bg_pid > 0 && pid == G.last_bg_pid) { 9970 if (pid == G.last_bg_pid) {
9971 /* "wait $!" but last bg task has already exited. Try: 9971 /* "wait $!" but last bg task has already exited. Try:
9972 * (sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $? 9972 * (sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?
9973 * In bash it prints exitcode 0, then 3. 9973 * In bash it prints exitcode 0, then 3.