diff options
author | Ron Yorston <rmy@pobox.com> | 2020-07-25 12:48:13 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-07-25 12:48:13 +0100 |
commit | cfa888eb571d92d4de02b406f0dad15e4fa26d19 (patch) | |
tree | 177dec576bd63de16c3ae18f1b6982b3b15b92a0 /coreutils/timeout.c | |
parent | 2974f8f44cdb029f040cc2a975592daf965817af (diff) | |
download | busybox-w32-cfa888eb571d92d4de02b406f0dad15e4fa26d19.tar.gz busybox-w32-cfa888eb571d92d4de02b406f0dad15e4fa26d19.tar.bz2 busybox-w32-cfa888eb571d92d4de02b406f0dad15e4fa26d19.zip |
win32: code shrink kill(2)
- Drop exit_code argument from kill_SIGTERM_by_handle()
- Pass signal number rather than exit code to other functions
- Merge kill_SIGKILL() and kill_SIGTEST()
Saves 112 bytes.
Diffstat (limited to 'coreutils/timeout.c')
-rw-r--r-- | coreutils/timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/timeout.c b/coreutils/timeout.c index 1a9660183..06c134a37 100644 --- a/coreutils/timeout.c +++ b/coreutils/timeout.c | |||
@@ -52,7 +52,7 @@ HANDLE child = INVALID_HANDLE_VALUE; | |||
52 | static void kill_child(void) | 52 | static void kill_child(void) |
53 | { | 53 | { |
54 | if (child != INVALID_HANDLE_VALUE) { | 54 | if (child != INVALID_HANDLE_VALUE) { |
55 | kill_SIGTERM_by_handle(child, 128+SIGTERM); | 55 | kill_SIGTERM_by_handle(child); |
56 | } | 56 | } |
57 | } | 57 | } |
58 | #endif | 58 | #endif |