Bug 63147

Summary: Nice change breaks the existing binaries.
Product: [Retired] Red Hat Linux Reporter: hjl
Component: man-pagesAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: high    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-13 02:00:51 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
A patch none

Description hjl 2002-04-10 16:38:58 UTC
The nice ABI change in glibc 2.2.5-30 breaks the existing binaries. Also

# man 2 nice
NICE(2)             Linux Programmer's Manual             NICE(2)

NAME
       nice - change process priority

SYNOPSIS
       #include <unistd.h>

       int nice(int inc);

DESCRIPTION
       nice  adds  inc to the nice value for the calling pid.  (A
       large nice value means a low priority.)  Only  the  super-
       user   may  specify  a  negative  increment,  or  priority
       increase.

RETURN VALUE
       On success, zero is returned.  On error, -1  is  returned,
       and errno is set appropriately.

glibc should provide an old version of nice and the nice man page
should be fixed.

Comment 1 hjl 2002-04-10 18:50:15 UTC
Created attachment 53184 [details]
A patch

Comment 2 hjl 2002-04-10 18:50:55 UTC
Here is a patch which works for VMware 2.0.4.

Comment 3 hjl 2002-10-13 02:00:45 UTC
A similar bug now in RedHat 8.0. The difference now
is the return value on success.

BTW, on 8.0, the nice man page is the same as 7.3.

Comment 4 Jakub Jelinek 2002-10-13 05:28:15 UTC
Then it is a manpage bug, not anything else. I really cannot change the default
nice symbol version and screw binary compatibility with everyone else.
The old nice behaviour was a bug, not a feature. So VMWare needs to be fixed
(wasn't it already).