Collin Funk, le dim. 09 nov. 2025 12:06:59 -0800, a ecrit: > Samuel Thibault <[email protected]> writes: > >> > + prio = MAX (0, MIN (2 * NZERO - 1, prio)); > >> > + > >> > error_t setonepriority (pid_t pid, struct procinfo *pi) > >> > { > >> > task_t task; > >> > >> Isn't NZERO defined to 20 on Hurd? That means (2 * NZERO - 1) == 39, but > >> Hurd's max niceness is 38. > > > > I fixed that part in Gnumach. > > Great, thanks! My coreutils change, which I have not pushed yet [1], > clamped the value from 0 - 38 inclusive if __gnu_hurd__ was defined. > > Should that be changed to also check that glibc ≤ 2.42 based on > __GLIBC__ and __GLIBC_MINOR__?
You can make it conditional to clamp only for old glibc indeed. Samuel
