From 0ce786cd7807ed235069c6dc98ac3e5a94878b4e Mon Sep 17 00:00:00 2001 From: hoholee12 Date: Tue, 25 Jul 2023 20:21:16 +0900 Subject: [PATCH] fix --- Utilities/Thread.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 47a1388f9d..6332b25d2f 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -3032,13 +3032,12 @@ void thread_ctrl::set_native_priority(int priority) } #elif defined(__linux__) // available niceness for root: -20~19 - int linuxprio = 0; id_t threadpid = gettid(); uid_t euid = geteuid(); if (euid == 0) { - linuxprio = 0; + int linuxprio = 0; if (priority > 0) linuxprio = -6; else if (priority < 0)