Bug 148984

Summary: Description of return value of nice() doesn't match behavior
Product: [Fedora] Fedora Reporter: Terry Griffin <griffint>
Component: man-pagesAssignee: Jiri Ryska <jryska>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: man-pages-2.05-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-04 14:54:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Program to show return values of nice() none

Description Terry Griffin 2005-02-17 19:03:02 UTC
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
is two.

Version-Release number of selected component (if applicable):

1.67-3

How reproducible:

100%

Steps to Reproduce:
1. Run sample program (to be attached)
2. Compare return values to man page.
  
Actual results:

Man page and output of sample program don't agree.

Expected results:

Man page and output of sample program should agree.

Additional info:

Comment 1 Terry Griffin 2005-02-17 19:06:38 UTC
Created attachment 111175 [details]
Program to show return values of nice()