Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153380565
D40339.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
756 B
Referenced Files
None
Subscribers
None
D40339.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 7:57 PM (10 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31930365
Default Alt Text
D40339.diff (756 B)
Attached To
Mode
D40339: setusercontext(): Fix gap when setting a realtime-class priority
Attached
Detach File
Event Timeline
Log In to Comment