aboutsummaryrefslogtreecommitdiff
path: root/coreutils/timeout.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-07-25 12:48:13 +0100
committerRon Yorston <rmy@pobox.com>2020-07-25 12:48:13 +0100
commitcfa888eb571d92d4de02b406f0dad15e4fa26d19 (patch)
tree177dec576bd63de16c3ae18f1b6982b3b15b92a0 /coreutils/timeout.c
parent2974f8f44cdb029f040cc2a975592daf965817af (diff)
downloadbusybox-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.c2
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;
52static void kill_child(void) 52static 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