jack: use RESET_ON_FORK when dropping rt priority

Once we set the RESET_ON_FORK flag we might not have permission to
reset again in drop_rt so simply also set it when dropping.
This commit is contained in:
Wim Taymans 2021-07-01 15:34:19 +02:00
parent 35194d6de0
commit 797e9b3e0b

View file

@ -5461,7 +5461,7 @@ int jack_drop_real_time_scheduling (jack_native_thread_t thread)
pw_log_info("thread %lu", thread); pw_log_info("thread %lu", thread);
if ((res = pthread_setschedparam((pthread_t)thread, if ((res = pthread_setschedparam((pthread_t)thread,
SCHED_OTHER, &rt_param)) == 0) SCHED_OTHER | SCHED_RESET_ON_FORK, &rt_param)) == 0)
return 0; return 0;
pw_log_warn("thread %lu: can't drop RT priority: %s", thread, pw_log_warn("thread %lu: can't drop RT priority: %s", thread,