mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
only one should be imported.
This commit is contained in:
parent
6f4db28710
commit
6dff13c309
@ -74,8 +74,6 @@ def daemonize(logger):
|
|||||||
os._exit(0)
|
os._exit(0)
|
||||||
else:
|
else:
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
|
|
||||||
import resource # Resource usage information.
|
|
||||||
|
|
||||||
maxfd = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
|
maxfd = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
|
||||||
if (maxfd == resource.RLIM_INFINITY):
|
if (maxfd == resource.RLIM_INFINITY):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user