Page MenuHomeFreeBSD

D40339.diff
No OneTemporary

D40339.diff

diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -452,7 +452,7 @@
if (p > PRIO_MAX) {
rtp.type = RTP_PRIO_IDLE;
- p -= PRIO_MAX + 1;
+ p += RTP_PRIO_MIN - (PRIO_MAX + 1);
rtp.prio = p > RTP_PRIO_MAX ? RTP_PRIO_MAX : p;
if (rtprio(RTP_SET, 0, &rtp))
syslog(LOG_WARNING, "rtprio '%s' (%s): %m",
@@ -460,7 +460,7 @@
lc ? lc->lc_class : LOGIN_DEFCLASS);
} else if (p < PRIO_MIN) {
rtp.type = RTP_PRIO_REALTIME;
- p -= PRIO_MIN - RTP_PRIO_MAX;
+ p += RTP_PRIO_MAX - (PRIO_MIN - 1);
rtp.prio = p < RTP_PRIO_MIN ? RTP_PRIO_MIN : p;
if (rtprio(RTP_SET, 0, &rtp))
syslog(LOG_WARNING, "rtprio '%s' (%s): %m",

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 23, 5:53 AM (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27877472
Default Alt Text
D40339.diff (756 B)

Event Timeline