NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



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

From: Stathis Kamperis <ekamperi%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
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
 


Home | Main Index | Thread Index | Old Index