aboutsummaryrefslogtreecommitdiff
path: root/coreutils/timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/timeout.c')
-rw-r--r--coreutils/timeout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/timeout.c b/coreutils/timeout.c
index 3565c005d..8f306529f 100644
--- a/coreutils/timeout.c
+++ b/coreutils/timeout.c
@@ -54,7 +54,7 @@ static HANDLE child = INVALID_HANDLE_VALUE;
54static void kill_child(void) 54static void kill_child(void)
55{ 55{
56 if (child != INVALID_HANDLE_VALUE) { 56 if (child != INVALID_HANDLE_VALUE) {
57 kill_SIGTERM_by_handle(child); 57 kill_signal_by_handle(child, SIGTERM);
58 } 58 }
59} 59}
60 60
@@ -130,7 +130,7 @@ int timeout_main(int argc UNUSED_PARAM, char **argv)
130#if !ENABLE_PLATFORM_MINGW32 130#if !ENABLE_PLATFORM_MINGW32
131 if (signo < 0) 131 if (signo < 0)
132#else 132#else
133 if (signo != SIGTERM && signo != SIGKILL && signo != 0) 133 if (!is_valid_signal(signo))
134#endif 134#endif
135 bb_error_msg_and_die("unknown signal '%s'", opt_s); 135 bb_error_msg_and_die("unknown signal '%s'", opt_s);
136 136