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
				
			
		| 
						 | 
				
			
			@ -327,7 +327,7 @@ static int open_audio_device(struct userdata *u, pa_sample_spec *ss) {
 | 
			
		|||
    pa_assert(u);
 | 
			
		||||
    pa_assert(ss);
 | 
			
		||||
 | 
			
		||||
    if ((u->fd = open(u->device_name, u->mode | O_NONBLOCK)) < 0) {
 | 
			
		||||
    if ((u->fd = pa_open_cloexec(u->device_name, u->mode | O_NONBLOCK)) < 0) {
 | 
			
		||||
        pa_log_warn("open %s failed (%s)", u->device_name, pa_cstrerror(errno));
 | 
			
		||||
        return -1;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue