summaryrefslogtreecommitdiffstats
path: root/src/server/integrity.c
diff options
context:
space:
mode:
authorSimon Rettberg2013-08-19 21:08:46 +0200
committerSimon Rettberg2013-08-19 21:08:46 +0200
commit9d3394bd6a71229c395c7fe4e542c5c21cfc9362 (patch)
treeb270550d620c7b0bd57e5718ddae7c106f0aece3 /src/server/integrity.c
parent[CLIENT] Start implementing a daemon mode which should make connecting dnbd3 ... (diff)
downloaddnbd3-9d3394bd6a71229c395c7fe4e542c5c21cfc9362.tar.gz
dnbd3-9d3394bd6a71229c395c7fe4e542c5c21cfc9362.tar.xz
dnbd3-9d3394bd6a71229c395c7fe4e542c5c21cfc9362.zip
[SERVER] Formatting
Diffstat (limited to 'src/server/integrity.c')
-rw-r--r--src/server/integrity.c4
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