OSDN Git Service

Fix some issues with nice(). SUSv3 specifies that it return the new
authorManuel Novoa III <mjn3@codepoet.org>
Mon, 14 Feb 2005 04:40:39 +0000 (04:40 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Mon, 14 Feb 2005 04:40:39 +0000 (04:40 -0000)
commit67256bd81271093c911a516aa00a5b33a63d6cbd
tree66977d3a91596e402c00b3e475b43470064e90cf
parent8b7d5c86ca6e6679ae8ad7bc16e97b3b204f217d
Fix some issues with nice().  SUSv3 specifies that it return the new
priority if successful, while the linux syscall returns 0.  Also, in
the non-syscall version, we must be sure to set errno to EPERM on failure
since setpriority() can set errno to several possible values.
Note: The version of glibc on my debian system is broken wrt EPERM too.
libc/sysdeps/linux/common/nice.c