This is definitely a bug, but I need to look at whether changing itOn Mon, Apr 01, 2013 at 02:54:18PM +0100, Justin Cormack wrote:
> cat ./src/misc/setpriority.c
> #include <sys/resource.h>
> #include "syscall.h"
>
> int setpriority(int which, id_t who, int prio)
> {
> return syscall(SYS_getpriority, which, who, prio);
> }
>
> ^ should be set!
will fix the problem. getpriority is doing some transformation on the
prio value and I don't remember why, but it seems likely setpriority
might need to do the same.
Rich