fix import error of resource on windows

This commit is contained in:
V.E.O 2016-11-10 11:25:12 +08:00 committed by GitHub
parent ac58020595
commit 2a6fbc87d4

View file

@ -41,8 +41,11 @@ def main():
daemon.daemon_exec(config)
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