Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142685643
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
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)
Attached To
Mode
D40339: setusercontext(): Fix gap when setting a realtime-class priority
Attached
Detach File
Event Timeline
Log In to Comment