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 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)) {