diff options
author | Ron Yorston <rmy@pobox.com> | 2021-01-14 13:28:49 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-01-14 13:28:49 +0000 |
commit | 89963b524d211e1aec12b72b3725be05ee95c8cf (patch) | |
tree | 48590aef62b7ee7686b7898256f29def8d9c50b9 /coreutils/timeout.c | |
parent | 9aa5a829070392c2ac6494d0c4e674c0c2bc7dab (diff) | |
parent | 2b7c1aa92c68524559a2067609d09309d5c09adc (diff) | |
download | busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.tar.gz busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.tar.bz2 busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/timeout.c')
-rw-r--r-- | coreutils/timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/timeout.c b/coreutils/timeout.c index 06c134a37..204a7ab92 100644 --- a/coreutils/timeout.c +++ b/coreutils/timeout.c | |||
@@ -41,7 +41,7 @@ | |||
41 | //usage:#define timeout_trivial_usage | 41 | //usage:#define timeout_trivial_usage |
42 | //usage: "[-s SIG] SECS PROG ARGS" | 42 | //usage: "[-s SIG] SECS PROG ARGS" |
43 | //usage:#define timeout_full_usage "\n\n" | 43 | //usage:#define timeout_full_usage "\n\n" |
44 | //usage: "Runs PROG. Sends SIG to it if it is not gone in SECS seconds.\n" | 44 | //usage: "Run PROG. Send SIG to it if it is not gone in SECS seconds.\n" |
45 | //usage: "Default SIG: TERM." | 45 | //usage: "Default SIG: TERM." |
46 | 46 | ||
47 | #include "libbb.h" | 47 | #include "libbb.h" |
@@ -130,7 +130,7 @@ int timeout_main(int argc UNUSED_PARAM, char **argv) | |||
130 | grandchild: | 130 | grandchild: |
131 | /* Just sleep(HUGE_NUM); kill(parent) may kill wrong process! */ | 131 | /* Just sleep(HUGE_NUM); kill(parent) may kill wrong process! */ |
132 | while (1) { | 132 | while (1) { |
133 | sleep(1); | 133 | sleep1(); |
134 | if (--timeout <= 0) | 134 | if (--timeout <= 0) |
135 | break; | 135 | break; |
136 | if (kill(parent, 0)) { | 136 | if (kill(parent, 0)) { |