Project

General

Profile

Bug #1408

nice(3) doesn't return new priority

Added by Anonymous over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


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 View (421 Bytes) Anonymous, 06/23/2009 12:30 PM

History

#1 Updated by Anonymous over 7 years ago

Fixed with: 3d6d8152830abc76435ecf121790d2cf1e6a2375

Also available in: Atom PDF