Bug #1408

nice(3) doesn't return new priority

Added by Beket almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Beket% Done:

0%

Category:-
Target version:-

Description

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

nice.diff Magnifier (421 Bytes) Beket, 06/23/2009 12:30 PM

History

#1 Updated by Beket almost 5 years ago

Fixed with: 3d6d8152830abc76435ecf121790d2cf1e6a2375

Also available in: Atom PDF