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
				
			
		| 
						 | 
				
			
			@ -239,7 +239,7 @@ int pa_unix_socket_is_stale(const char *fn) {
 | 
			
		|||
 | 
			
		||||
    pa_assert(fn);
 | 
			
		||||
 | 
			
		||||
    if ((fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0) {
 | 
			
		||||
    if ((fd = pa_socket_cloexec(PF_UNIX, SOCK_STREAM, 0)) < 0) {
 | 
			
		||||
        pa_log("socket(): %s", pa_cstrerror(errno));
 | 
			
		||||
        goto finish;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue