Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130401140504.GK20323@brightrain.aerifal.cx>
Date: Mon, 1 Apr 2013 10:05:04 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: setpriority typo

On 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!

This is definitely a bug, but I need to look at whether changing it
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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.