Bug#498485: why: calls cpulimit with wrong arguments
Package: why
Version: 1.13-1
Severity: normal
calldp.ml calls cpulimit with
let cmd = sprintf "cpulimit %d %s > %s 2>&1" timeout cmd out in
but the cpulimit tool in debian expects different syntax:
$ cpulimit
Error: You must specify a target process
Usage: cpulimit TARGET [OPTIONS...]
TARGET must be exactly one of these:
-p, --pid=N pid of the process
-e, --exe=FILE name of the executable program file
-P, --path=PATH absolute path name of the executable program file
OPTIONS
-l, --limit=N percentage of cpu allowed from 0 to 100 (mandatory)
-v, --verbose show control statistics
-z, --lazy exit if there is no suitable target process, or if it dies
-h, --help display this help and exit
tools/cpulimit.c has an alternative cpulimit that has
fprintf(stderr,"usage: %s <time limit in seconds> <command>\n",argv[0]);
as the syntax.
Reply to: