diff options
Diffstat (limited to 'src/server/integrity.c')
-rw-r--r-- | src/server/integrity.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/integrity.c b/src/server/integrity.c index beec81d..4e637f6 100644 --- a/src/server/integrity.c +++ b/src/server/integrity.c @@ -104,7 +104,9 @@ static void* integrity_main(void *data) size_t bufferSize = 0; setThreadName( "image-check" ); #if defined(linux) || defined(__linux) - // Setting nice of this thread - this is not POSIX conforming, so check if other platforms support this + // Setting nice of this thread - this is not POSIX conforming, so check if other platforms support this. + // POSIX says that setpriority() should set the nice value of all threads belonging to the current process, + // but on linux you can do this per thread. pid_t tid = syscall( SYS_gettid ); setpriority( PRIO_PROCESS, tid, 10 ); #endif |