mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	check for availability of RLIMIT_NOFILE and RLIMIT_AS before we make use of it
This commit is contained in:
		
							parent
							
								
									4e31e00b63
								
							
						
					
					
						commit
						3bcbe1d18f
					
				
					 3 changed files with 28 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -84,7 +84,14 @@ typedef struct pa_daemon_conf {
 | 
			
		|||
    char *config_file;
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_SYS_RESOURCE_H
 | 
			
		||||
    pa_rlimit rlimit_fsize, rlimit_data, rlimit_stack, rlimit_core, rlimit_rss, rlimit_nofile, rlimit_as;
 | 
			
		||||
    pa_rlimit rlimit_fsize, rlimit_data, rlimit_stack, rlimit_core, rlimit_rss;
 | 
			
		||||
 | 
			
		||||
#ifdef RLIMIT_NOFILE
 | 
			
		||||
    pa_rlimit rlimit_nofile;
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef RLIMIT_AS
 | 
			
		||||
    pa_rlimit rlimit_as;
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef RLIMIT_NPROC
 | 
			
		||||
    pa_rlimit rlimit_nproc;
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue