mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-13 23:45:37 +02:00
More set thread priority tweaking:
1. Move SETMODE calls into hthreads functions. 2. Issue message that identifies source statement that failed.
This commit is contained in:
@@ -807,15 +807,8 @@ struct timeval timeout; /* timeout value */
|
||||
|
||||
hdl_adsc("http_shutdown",http_shutdown, NULL);
|
||||
|
||||
/* Set root mode in order to set priority */
|
||||
SETMODE(ROOT);
|
||||
|
||||
/* Set server thread priority; ignore any errors */
|
||||
if(set_thread_priority(0, sysblk.srvprio))
|
||||
WRMSG(HHC00136, "W", "set_thread_priority()", strerror(errno));
|
||||
|
||||
/* Back to user mode */
|
||||
SETMODE(USER);
|
||||
set_thread_priority(0, sysblk.srvprio);
|
||||
|
||||
/* Display thread started message on control panel */
|
||||
WRMSG (HHC00100, "I", thread_id(), get_thread_priority(0), "HTTP server");
|
||||
|
||||
Reference in New Issue
Block a user