thread/Util: set the SCHED_RESET_ON_FORK flag in SetThreadRealtime()
This commit is contained in:
parent
b52d8fbebe
commit
1d547fe273
@ -78,7 +78,7 @@ SetThreadRealtime()
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
struct sched_param sched_param;
|
struct sched_param sched_param;
|
||||||
sched_param.sched_priority = 50;
|
sched_param.sched_priority = 50;
|
||||||
sched_setscheduler(0, SCHED_FIFO, &sched_param);
|
sched_setscheduler(0, SCHED_FIFO|SCHED_RESET_ON_FORK, &sched_param);
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user