Merge pull request #130 from V-E-O/patch-1

fix import error of resource on windows
This commit is contained in:
破娃酱
2016-11-10 15:55:28 +08:00
committed by GitHub
+5 -2
View File
@@ -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