[Bug 2989] New: chrt applet: -m option is not working properly
bugzilla at busybox.net
bugzilla at busybox.net
Sat Dec 18 21:20:05 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=2989
Summary: chrt applet: -m option is not working properly
Product: Busybox
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at busybox.net
ReportedBy: zinosat at tiscali.it
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
if set, -m option should print minimum and maximum valid priorities, then exit
/ # chrt -m
BusyBox v1.19.0.git (2010-12-18 21:01:15 CET) multi-call binary.
Usage: chrt [-prfom] [PRIO] [PID | PROG ARGS]
Change scheduling priority and class for a process
Options:
-p Operate on PID
-r Set SCHED_RR class
-f Set SCHED_FIFO class
-o Set SCHED_OTHER class
-m Show min/max priorities
It prints the right ouput if an argument is passed to -m
/ # chrt -m foo
SCHED_FIFO min/max priority : 1/99
SCHED_RR min/max priority : 1/99
SCHED_OTHER min/max priority : 0/0
I put some debugging printouts, and noticed that when -m is passed without
argument, applet exits at getopt32() (at least does not get past it); I guess
then there's something wrong with applet_opts ("+mprfo"), or with
opt_complementary ("-1:r--fo:f--ro:o--rf") or with getopt32()
regards,
Davide
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list