fix import error of resource on windows
This commit is contained in:
		
							parent
							
								
									ac58020595
								
							
						
					
					
						commit
						2a6fbc87d4
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -41,8 +41,11 @@ def main(): | ||||||
| 
 | 
 | ||||||
|     daemon.daemon_exec(config) |     daemon.daemon_exec(config) | ||||||
| 
 | 
 | ||||||
|     import resource |     try: | ||||||
|     logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d'  % resource.getrlimit(resource.RLIMIT_NOFILE)) |         import resource | ||||||
|  |         logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d'  % resource.getrlimit(resource.RLIMIT_NOFILE)) | ||||||
|  |     except ImportError: | ||||||
|  |         pass | ||||||
| 
 | 
 | ||||||
|     if config['port_password']: |     if config['port_password']: | ||||||
|         pass |         pass | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue