mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -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
							
								
									a61f8cf666
								
							
						
					
					
						commit
						02e3713cf1
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -274,6 +274,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