[Patches] [ python-Patches-439995 ] fix for #439990: return value of nice

noreply@sourceforge.net noreply@sourceforge.net
Wed, 11 Jul 2001 08:01:16 -0700


Patches item #439995, was opened at 2001-07-10 02:35
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=439995&group_id=5470

Category: Modules
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Thomas Wouters (twouters)
>Assigned to: Thomas Wouters (twouters)
Summary: fix for #439990: return value of nice

Initial Comment:
This patch fixes the problem reported in SF bug
#439990: Linux' 'nice()' systemcall does not return the
new priority.

This could optionally be fixed by adding a configure
check and a few defines for this behaviour, but that
would either be messy #defines or a lot of code
duplication, and I'm not sure if it's worth it.

The patch assumes getpriority() is available verywhere
nice() is available. I think that is a safe assumption,
given that getpriority() has been available since BSD4.2.

----------------------------------------------------------------------

>Comment By: Thomas Wouters (twouters)
Date: 2001-07-11 08:01

Message:
Logged In: YES 
user_id=34209

Checked in a slightly modified version that checks for the
availability of getpriority() before using it. Also checked
into the 2.1.1 tree: configure.in revisions 1.226 and
1.215.2.3, configure 1.218 and 1.207.2.3, config.h.in 2.99
and 2.91.2.3, posixmodule.c 2.191 and 2.187.2.2.


----------------------------------------------------------------------

Comment By: Thomas Wouters (twouters)
Date: 2001-07-10 02:45

Message:
Logged In: YES 
user_id=34209

Alright, really submitted the patch this time :) (I thought
the 'check to upload' button was *finally* auto-checked by
SF, but it just looked that way in Mozilla :)


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=439995&group_id=5470