diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-18 22:44:00 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-18 22:44:00 +0100 |
| commit | 8531d76a15890c2c535908ce888b2e2aed35b172 (patch) | |
| tree | 2035bb9eb9feec14d80487a313729192bb0e875c /findutils | |
| parent | c5c006c10c060e7f1a97250d039051b93ed390b2 (diff) | |
| download | busybox-w32-8531d76a15890c2c535908ce888b2e2aed35b172.tar.gz busybox-w32-8531d76a15890c2c535908ce888b2e2aed35b172.tar.bz2 busybox-w32-8531d76a15890c2c535908ce888b2e2aed35b172.zip | |
*: code shrink and better "died from signal" reporting from wait4pid
function old new delta
parse 964 967 +3
udhcp_run_script 670 665 -5
singlemount 911 906 -5
mount_it_now 360 355 -5
inotifyd_main 521 516 -5
xspawn 21 - -21
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/4 up/down: 3/-41) Total: -38 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils')
| -rw-r--r-- | findutils/xargs.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c index c7117771c..f5dbc7825 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c | |||
| @@ -64,16 +64,9 @@ static int xargs_exec(char **args) | |||
| 64 | bb_error_msg("%s: exited with status 255; aborting", args[0]); | 64 | bb_error_msg("%s: exited with status 255; aborting", args[0]); |
| 65 | return 124; | 65 | return 124; |
| 66 | } | 66 | } |
| 67 | /* Huh? I think we won't see this, ever. We don't wait with WUNTRACED! | 67 | if (status >= 0x180) { |
| 68 | if (WIFSTOPPED(status)) { | ||
| 69 | bb_error_msg("%s: stopped by signal %d", | ||
| 70 | args[0], WSTOPSIG(status)); | ||
| 71 | return 125; | ||
| 72 | } | ||
| 73 | */ | ||
| 74 | if (status >= 1000) { | ||
| 75 | bb_error_msg("%s: terminated by signal %d", | 68 | bb_error_msg("%s: terminated by signal %d", |
| 76 | args[0], status - 1000); | 69 | args[0], status - 0x180); |
| 77 | return 125; | 70 | return 125; |
| 78 | } | 71 | } |
| 79 | if (status) | 72 | if (status) |
