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)
|
||||
|
||||
import resource
|
||||
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE))
|
||||
try:
|
||||
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']:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue