mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-21 18:26:24 +00:00
rtkit: Allow disabling with DISABLE_RTKIT
Allow disabling real time thread, this is useful to run inside valgrind without being killed. Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
This commit is contained in:
parent
a61f8cf666
commit
02e3713cf1
|
@ -274,6 +274,9 @@ int pw_rtkit_make_realtime(struct pw_rtkit_bus *connection, pid_t thread, int pr
|
|||
DBusError error;
|
||||
int ret;
|
||||
|
||||
if (getenv("DISABLE_RTKIT"))
|
||||
return -EPERM;
|
||||
|
||||
dbus_error_init(&error);
|
||||
|
||||
if (thread == 0)
|
||||
|
|
Loading…
Reference in a new issue