diff options
author | Max Kellermann <max@duempel.org> | 2014-01-23 09:14:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-23 09:14:09 +0100 |
commit | 1d547fe273b094e073ed1ad1b96df59ace4380f3 (patch) | |
tree | 61661662e88df5fefa8e4a44fce490a86e9ba977 /src/thread | |
parent | b52d8fbebe2b0afa7fa2d7dd71c1d1761803662c (diff) | |
download | mpd-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.hxx | 2 |
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 }; |