This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 <kukuk@suse.de> * 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |