mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	use cloexec wrappers wherever applicable
This commit is contained in:
		
							parent
							
								
									9c1a98953f
								
							
						
					
					
						commit
						65e7bc18a9
					
				
					 25 changed files with 39 additions and 91 deletions
				
			
		| 
						 | 
				
			
			@ -175,7 +175,7 @@ int pa__init(pa_module*m) {
 | 
			
		|||
    u->fd = -1;
 | 
			
		||||
    u->fd_type = 0;
 | 
			
		||||
 | 
			
		||||
    if ((u->fd = open(pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), O_RDONLY|O_NOCTTY)) < 0) {
 | 
			
		||||
    if ((u->fd = pa_open_cloexec(pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), O_RDONLY, 0)) < 0) {
 | 
			
		||||
        pa_log("Failed to open evdev device: %s", pa_cstrerror(errno));
 | 
			
		||||
        goto fail;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue