chiark
/
gitweb
/
~mdw
/
misc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 1.3.1.
[misc]
/
mtimeout.c
diff --git
a/mtimeout.c
b/mtimeout.c
index 65281be0701922dcfaca8188c2dd2a920d949c90..373f2b0b770593ce1336bf6ac52a3623343c23f6 100644
(file)
--- a/
mtimeout.c
+++ b/
mtimeout.c
@@
-287,7
+287,11
@@
static void strtotime(const char *p, struct timeval *tv)
/*----- Help functions ----------------------------------------------------*/
static void usage(FILE *fp)
/*----- Help functions ----------------------------------------------------*/
static void usage(FILE *fp)
- { pquis(fp, "Usage: $ [-s SIG] SECONDS COMMAND [ARGUMENTS ...]\n"); }
+{
+ pquis(fp,
+ "Usage: $ [-K] [-b TIME] [-k TIME] [-s SIG] "
+ "TIME COMMAND [ARGUMENTS ...]\n");
+}
static void version(FILE *fp)
{ pquis(fp, "$ (version " VERSION ")\n"); }
static void version(FILE *fp)
{ pquis(fp, "$ (version " VERSION ")\n"); }
@@
-298,14
+302,21
@@
static void help(FILE *fp)
usage(fp);
pquis(fp, "\n\
Run COMMAND, giving it the ARGUMENTS. If it fails to complete within the\n\
usage(fp);
pquis(fp, "\n\
Run COMMAND, giving it the ARGUMENTS. If it fails to complete within the\n\
-specified number of
SECONDS
, kill it. Otherwise exit with the status it\n\
+specified number of
TIME
, kill it. Otherwise exit with the status it\n\
returns.\n\
\n\
returns.\n\
\n\
+A TIME is a possibly fractional number followed by an optional unit\n\
+designator, which may be `s', `m', `h', or `d', for seconds, minutes,\n\
+hours, or days, respectively. The default units are seconds.\n\
+\n\
Options:\n\
-h, --help Show this help text.\n\
-v, --version Show version string.\n\
-u, --usage Show a terse usage summary.\n\
\n\
Options:\n\
-h, --help Show this help text.\n\
-v, --version Show version string.\n\
-u, --usage Show a terse usage summary.\n\
\n\
+ -b, --bored-after=TIME Wait for TIME after sending SIGKILL.\n\
+ -k, --kill-after=TIME Wait for TIME after signal before sending SIGKILL.\n\
+ -K, --no-kill Don't send SIGKILL; just give up when bored.\n\
-s, --signal=SIG Send signal SIG to the command.\n\
");
}
-s, --signal=SIG Send signal SIG to the command.\n\
");
}