Changeset 3001 for zzuf/trunk


Ignore:
Timestamp:
Oct 19, 2008, 12:01:43 AM (11 years ago)
Author:
Sam Hocevar
Message:

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

Location:
zzuf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/doc/zzuf.1

    r2816 r3001  
    291291situations. See also the \fB\-B\fR and \fB\-T\fR flags.
    292292.TP
    293 \fB\-T\fR, \fB\-\-max\-cpu\fR=\fIn\fR
     293\fB\-T\fR, \fB\-\-max\-cputime\fR=\fIn\fR
    294294Automatically terminate child processes that use more than \fIn\fR seconds
    295295of CPU time.
  • zzuf/trunk/src/zzuf.c

    r2818 r3001  
    212212            { "signal",      0, NULL, 'S' },
    213213            { "max-time",    1, NULL, 't' },
    214             { "max-cpu",    1, NULL, 'T' },
     214            { "max-cputime", 1, NULL, 'T' },
    215215            { "verbose",     0, NULL, 'v' },
    216216            { "check-exit",  0, NULL, 'x' },
     
    350350            break;
    351351#if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_CPU
    352         case 'T': /* --max-cpu */
     352        case 'T': /* --max-cputime */
    353353            if(myoptarg[0] == '=')
    354354                myoptarg++;
     
    12531253    printf("  -S, --signal              prevent children from diverting crashing signals\n");
    12541254    printf("  -t, --max-time <n>        kill children that run for more than <n> seconds\n");
    1255     printf("  -T, --max-cpu <n>         kill children that use more than <n> CPU seconds\n");
     1255    printf("  -T, --max-cputime <n>     kill children that use more than <n> CPU seconds\n");
    12561256    printf("  -v, --verbose             print information during the run\n");
    12571257    printf("  -x, --check-exit          report processes that exit with a non-zero status\n");
Note: See TracChangeset for help on using the changeset viewer.