From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16661 invoked by alias); 28 Sep 2002 11:51:08 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 16645 invoked from network); 28 Sep 2002 11:51:08 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 28 Sep 2002 11:51:08 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 5D1BD14719; Sat, 28 Sep 2002 13:51:07 +0200 (MEST) Date: Sat, 28 Sep 2002 04:51:00 -0000 From: Thorsten Kukuk To: Ulrich Drepper Cc: GNU libc hacker Subject: Re: ready for 2.3? Message-ID: <20020928135106.A10322@suse.de> References: <3D955075.4060405@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <3D955075.4060405@redhat.com>; from drepper@redhat.com on Fri, Sep 27, 2002 at 11:47:17PM -0700 Organization: SuSE Linux AG, Nuernberg, Germany X-SW-Source: 2002-09/txt/msg00073.txt.bz2 Hi Uli, there is one patch for the nice() emulation from me, where I and Andreas Jaeger already asked you for inclusion in the official tree, but never got an answer. Since all Linux Distributions have this patch in their glibc version, I think we should include it in the official release. The problem is, that, if the result of the current priority of a process and the added nice value is out of the priority range, nice should return the new priority which is really used, and not our calculated value: 2002-03-02 Thorsten Kukuk * sysdeps/unix/nice.c: Use getpriority() for the return value --- sysdeps/unix/nice.c +++ sysdeps/unix/nice.c 2002/03/02 09:40:14 @@ -43,7 +43,7 @@ result = setpriority (PRIO_PROCESS, 0, prio + incr); if (result != -1) - return prio + incr; + return getpriority (PRIO_PROCESS, 0); else return -1; -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SuSE Linux AG Deutschherrnstr. 15-19 D-90429 Nuernberg -------------------------------------------------------------------- Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B