Wrong priority value for normal processes
unga888 at yahoo.com
Sun Nov 23 02:48:25 PST 2008
On FreeBSD RELENG_7 on i386 and I have noted with rtprio(2) the priority for root and other normal users is "normal priority" with 65504 as the priority value (rtp.prio).
I checked the program flow from /usr/src/usr.bin/su/su.c to /usr/src/lib/libutil/login_class.c and it looks setusercontext() is setting the priority right but the moment it come out from the setusercontext() call in su.c, the priority has already turn to 65504.
More information about the freebsd-bugs