Red Hat Bugzilla – Bug 148984
Description of return value of nice() doesn't match behavior
Last modified: 2007-11-30 17:11:00 EST
Description of problem:
The return value of nice() system call is described incorrectly
in the nice(2) man page. The man page says it returns zero
on success when instead it returns the absolute nice level.
That is if you start out at zero and do nice(1), the return
value is one. If you do another nice(1) the return value
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run sample program (to be attached)
2. Compare return values to man page.
Man page and output of sample program don't agree.
Man page and output of sample program should agree.
Created attachment 111175 [details]
Program to show return values of nice()