Page MenuHomeFreeBSD

D40339.id122624.diff
No OneTemporary

D40339.id122624.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
@@ -454,7 +454,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",
@@ -462,7 +462,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
Thu, Jan 29, 10:32 PM (8 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28081996
Default Alt Text
D40339.id122624.diff (756 B)

Event Timeline