On Fri Dec 1 18:33:19 2023 +0000, Rémi Bernon wrote:
As nice_limit is usually negative, I think this should be max instead, as `wineserver` will be calling call `setpriority`?
int niceness, limit = max( nice_limit, thread->process->nice_limit );
Hmm actually no, but still it makes me wonder if there's actually a point in passing the process nice limit. I'm not completely sure how setpriority works but if it only uses the caller limits and if wineserver is more limited than the process itself it won't succeed anyway.