mirror of
				https://github.com/openresty/openresty.git
				synced 2024-10-13 00:29:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			336 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			336 B
		
	
	
	
		
			C
		
	
	
	
	
	
| --- a/src/core/ngx_thread_pool.c
 | |
| +++ b/src/core/ngx_thread_pool.c
 | |
| @@ -587,7 +587,8 @@
 | |
|      ngx_thread_pool_conf_t   *tcf;
 | |
|  
 | |
|      if (ngx_process != NGX_PROCESS_WORKER
 | |
| -        && ngx_process != NGX_PROCESS_SINGLE)
 | |
| +        && ngx_process != NGX_PROCESS_SINGLE
 | |
| +        && !ngx_is_privileged_agent)
 | |
|      {
 | |
|          return NGX_OK;
 | |
|      }
 |