aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-23 09:14:09 +0100
committerMax Kellermann <max@duempel.org>2014-01-23 09:14:09 +0100
commit1d547fe273b094e073ed1ad1b96df59ace4380f3 (patch)
tree61661662e88df5fefa8e4a44fce490a86e9ba977 /src/thread
parentb52d8fbebe2b0afa7fa2d7dd71c1d1761803662c (diff)
downloadmpd-1d547fe273b094e073ed1ad1b96df59ace4380f3.tar.gz
mpd-1d547fe273b094e073ed1ad1b96df59ace4380f3.tar.xz
mpd-1d547fe273b094e073ed1ad1b96df59ace4380f3.zip
thread/Util: set the SCHED_RESET_ON_FORK flag in SetThreadRealtime()
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/Util.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/Util.hxx b/src/thread/Util.hxx
index c09fef532..d71230c20 100644
--- a/src/thread/Util.hxx
+++ b/src/thread/Util.hxx
@@ -78,7 +78,7 @@ SetThreadRealtime()
#ifdef __linux__
struct sched_param sched_param;
sched_param.sched_priority = 50;
- sched_setscheduler(0, SCHED_FIFO, &sched_param);
+ sched_setscheduler(0, SCHED_FIFO|SCHED_RESET_ON_FORK, &sched_param);
#endif
};