Rename --max-cpu into --max-cputime to avoid confusion (fixes #44).

This commit is contained in:
Sam Hocevar
2008-10-18 22:01:43 +00:00
committed by sam
parent 2c4a8f36c5
commit 8512c8cb0b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ Automatically terminate child processes that run for more than \fIn\fR
seconds. This is useful to detect infinite loops or processes stuck in other
situations. See also the \fB\-B\fR and \fB\-T\fR flags.
.TP
\fB\-T\fR, \fB\-\-max\-cpu\fR=\fIn\fR
\fB\-T\fR, \fB\-\-max\-cputime\fR=\fIn\fR
Automatically terminate child processes that use more than \fIn\fR seconds
of CPU time.
+3 -3
View File
@@ -211,7 +211,7 @@ int main(int argc, char *argv[])
{ "seed", 1, NULL, 's' },
{ "signal", 0, NULL, 'S' },
{ "max-time", 1, NULL, 't' },
{ "max-cpu", 1, NULL, 'T' },
{ "max-cputime", 1, NULL, 'T' },
{ "verbose", 0, NULL, 'v' },
{ "check-exit", 0, NULL, 'x' },
{ "help", 0, NULL, 'h' },
@@ -349,7 +349,7 @@ int main(int argc, char *argv[])
opts->maxtime = (int64_t)(atof(myoptarg) * 1000000.0);
break;
#if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_CPU
case 'T': /* --max-cpu */
case 'T': /* --max-cputime */
if(myoptarg[0] == '=')
myoptarg++;
opts->maxcpu = (int)(atof(myoptarg) + 0.5);
@@ -1252,7 +1252,7 @@ static void usage(void)
printf(" --seed <start:stop> specify a seed range\n");
printf(" -S, --signal prevent children from diverting crashing signals\n");
printf(" -t, --max-time <n> kill children that run for more than <n> seconds\n");
printf(" -T, --max-cpu <n> kill children that use more than <n> CPU seconds\n");
printf(" -T, --max-cputime <n> kill children that use more than <n> CPU seconds\n");
printf(" -v, --verbose print information during the run\n");
printf(" -x, --check-exit report processes that exit with a non-zero status\n");
printf(" -h, --help display this help and exit\n");