ready for 2.3?
Thorsten Kukuk
kukuk@suse.de
Sat Sep 28 04:51:00 GMT 2002
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
More information about the Libc-hacker
mailing list