Bug #1408
nice(3) doesn't return new priority
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % 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
Related todos
History
Updated by Beket almost 4 years ago
Fixed with: 3d6d8152830abc76435ecf121790d2cf1e6a2375