[issue1408] nice(3) doesn't return new priority

Stathis Kamperis (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Tue Jun 23 05:32:50 PDT 2009


New submission from Stathis Kamperis <ekamperi at gmail.com>:

Salute.

The nice(3) library call returns 0/-1, whereas it should return the new priority
according to POSIX expectations.

I attach a patch to fix this. The nice(1) utility isn't affected in any way
whatsoever, since it doesn't use the nice(3) call. It uses get/setpriority()
directly.

If no one objects, I'll commit it in the next days.

Cheers,
Stathis

----------
assignedto: Beket
files: nice.diff
messages: 6775
nosy: Beket
priority: bug
status: unread
title: nice(3) doesn't return new priority

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1408>
_____________________________________________________Attachment:
nice.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00006.bin
Type: application/octet-stream
Size: 421 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20090623/e24ec771/attachment-0021.bin>


More information about the Bugs mailing list