diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 393cc413d6..3043f6b9a3 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1065,7 +1065,7 @@ int ScheduleBatchPriority(void) { #ifdef SCHED_BATCH const static sched_param param{.sched_priority = 0}; - if (int ret = pthread_setschedparam(0, SCHED_BATCH, ¶m)) { + if (int ret = pthread_setschedparam(pthread_self(), SCHED_BATCH, ¶m)) { LogPrintf("Failed to pthread_setschedparam: %s\n", strerror(errno)); return ret; } |