mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Fix creating of shared memory segments by specifying a writable location to store the associated file.
Authored-by: Joe Marcus Clarke <marcus@FreeBSD.org>
This commit is contained in:
		
							parent
							
								
									416b26d611
								
							
						
					
					
						commit
						49714f08d3
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -105,7 +105,11 @@ static inline size_t shm_marker_size(pa_mem_type_t type) {
 | 
			
		|||
 | 
			
		||||
#ifdef HAVE_SHM_OPEN
 | 
			
		||||
static char *segment_name(char *fn, size_t l, unsigned id) {
 | 
			
		||||
#ifndef __FreeBSD__
 | 
			
		||||
    pa_snprintf(fn, l, "/pulse-shm-%u", id);
 | 
			
		||||
#else
 | 
			
		||||
    pa_snprintf(fn, l, "/tmp/pulse-shm-%u", id);
 | 
			
		||||
#endif
 | 
			
		||||
    return fn;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue