[Bug 280843] net/boinc-client: fix idprio to provide the least possible priority
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Aug 2024 03:28:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280843 Bug ID: 280843 Summary: net/boinc-client: fix idprio to provide the least possible priority Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ler@FreeBSD.org Reporter: alster@vinterdalen.se CC: ler@FreeBSD.org Flags: maintainer-feedback?(ler@FreeBSD.org) Assignee: ler@FreeBSD.org Attachment #252797 maintainer-approval?(ler@FreeBSD.org) Flags: CC: ler@FreeBSD.org Created attachment 252797 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252797&action=edit [PATCH] net/boinc-client: fix idprio to provide the least possible priority When started with `idprio 31` boinc-client runs with actual PRI=88 NICE=i-86. When started with `idprio 30` boinc-client runs with actual PRI=186 NICE=i30. man idprio(1) says: > Priority is an integer between 0 and RTP_PRIO_MAX (usually 31). /usr/src/sys/sys/rtprio.h:61 have default value > #define RTP_PRIO_MAX 31 /* Lowest priority */ Seems like 31 should provide the lowest PRI, but it doesn't! Something really strange: I've found how to fix it, but can't understand, why does it work this way… -- You are receiving this mail because: You are the assignee for the bug.