mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	core-util: call dbus_connection_set_exit_on_disconnect() on shared busses to make sure dbus_shutdown() isn't fatal
This commit is contained in:
		
							parent
							
								
									470e9a8787
								
							
						
					
					
						commit
						767c7c7cf4
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -612,6 +612,11 @@ static int set_scheduler(int rtprio) {
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /* We need to disable exit on disconnect because otherwise
 | 
				
			||||||
 | 
					     * dbus_shutdown will kill us. See
 | 
				
			||||||
 | 
					     * https://bugs.freedesktop.org/show_bug.cgi?id=16924 */
 | 
				
			||||||
 | 
					    dbus_connection_set_exit_on_disconnect(bus, FALSE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    r = rtkit_make_realtime(bus, 0, rtprio);
 | 
					    r = rtkit_make_realtime(bus, 0, rtprio);
 | 
				
			||||||
    dbus_connection_unref(bus);
 | 
					    dbus_connection_unref(bus);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -680,6 +685,11 @@ static int set_nice(int nice_level) {
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /* We need to disable exit on disconnect because otherwise
 | 
				
			||||||
 | 
					     * dbus_shutdown will kill us. See
 | 
				
			||||||
 | 
					     * https://bugs.freedesktop.org/show_bug.cgi?id=16924 */
 | 
				
			||||||
 | 
					    dbus_connection_set_exit_on_disconnect(bus, FALSE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    r = rtkit_make_high_priority(bus, 0, nice_level);
 | 
					    r = rtkit_make_high_priority(bus, 0, nice_level);
 | 
				
			||||||
    dbus_connection_unref(bus);
 | 
					    dbus_connection_unref(bus);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue