netbsd-bugs@netbsd.org
[Top] [All Lists]

Re: lib/42587: nice() returns EACCES instead of (standard mandated) EPE

Subject: Re: lib/42587: nice() returns EACCES instead of (standard mandated) EPERM
From: Stathis Kamperis
Date: Wed, 06 Jan 2010 18:50:17 UTC
Newsgroups: fa.netbsd.bugs

The following reply was made to PR lib/42587; it has been noted by GNATS.

From: Stathis Kamperis <ekamperi@xxxxxxxxx>
To: gnats-bugs@xxxxxxxxxx
Cc: lib-bug-people@xxxxxxxxxx, netbsd-bugs@xxxxxxxxxx
Subject: Re: lib/42587: nice() returns EACCES instead of (standard mandated) 
        EPERM
Date: Wed, 6 Jan 2010 20:46:12 +0200

 > =A0That will break setpriority(2). You need to make the change in nice(3)=
 .
 >
 > =A0christos
 >
 >
 
 Ah, right, nice catch Christos.
 setpriority() should return EACCES, and nice() EPERM. So we can't
 change it in donice() as both are using it.
 
 POSIX's 'p' stands for paranoia.
 
 stathis
 

<Prev in Thread] Current Thread [Next in Thread>