From 1d547fe273b094e073ed1ad1b96df59ace4380f3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Jan 2014 09:14:09 +0100 Subject: thread/Util: set the SCHED_RESET_ON_FORK flag in SetThreadRealtime() --- src/thread/Util.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thread') 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 }; -- cgit v1.2.3