thread/Util: set the SCHED_RESET_ON_FORK flag in SetThreadRealtime()

This commit is contained in:
Max Kellermann 2014-01-23 09:14:09 +01:00
parent b52d8fbebe
commit 1d547fe273
1 changed files with 1 additions and 1 deletions

View File

@ -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
};