mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05: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
bdc81f6dc0
commit
6e7db20bf5
1 changed files with 3 additions and 0 deletions
|
|
@ -273,6 +273,9 @@ int pw_rtkit_make_realtime(struct pw_rtkit_bus *connection, pid_t thread, int pr
|
||||||
DBusError error;
|
DBusError error;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (getenv("DISABLE_RTKIT"))
|
||||||
|
return -EPERM;
|
||||||
|
|
||||||
dbus_error_init(&error);
|
dbus_error_init(&error);
|
||||||
|
|
||||||
if (thread == 0)
|
if (thread == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue