0606db17
by Conor McCarthy at 2025-04-14T21:51:52+02:00
server: Do not call setpriority() if it cannot be used safely.
Not checking nice_limit here can result in some calls to setpriority()
succeeding while others fail, which can result in relative priorities
being incorrect. For example, buffer underflows can occur in
winepulse.drv because the priority is too low in pulse_timer_loop().