Commit cec0447c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d134c0b9
...@@ -46,6 +46,7 @@ from time import gmtime ...@@ -46,6 +46,7 @@ from time import gmtime
from errno import EINVAL, ENOENT, ENOTCONN from errno import EINVAL, ENOENT, ENOTCONN
from stat import S_ISDIR from stat import S_ISDIR
from signal import SIGQUIT, SIGKILL from signal import SIGQUIT, SIGKILL
from resource import setrlimit, getrlimit, RLIMIT_MEMLOCK
from golang import go, chan, select, func, defer, default, error, b from golang import go, chan, select, func, defer, default, error, b
from golang import context, errors, sync, time from golang import context, errors, sync, time
from zodbtools.util import ashex as h, fromhex from zodbtools.util import ashex as h, fromhex
...@@ -77,7 +78,6 @@ def setup_module(): ...@@ -77,7 +78,6 @@ def setup_module():
# ↑ memlock soft-limit till its hard maximum # ↑ memlock soft-limit till its hard maximum
# (tFile needs ~ 64M to mlock while default memlock soft-limit is usually 64K) # (tFile needs ~ 64M to mlock while default memlock soft-limit is usually 64K)
from resource import setrlimit, getrlimit, RLIMIT_MEMLOCK
memlockS, memlockH = getrlimit(RLIMIT_MEMLOCK) memlockS, memlockH = getrlimit(RLIMIT_MEMLOCK)
if memlockS != memlockH: if memlockS != memlockH:
setrlimit(RLIMIT_MEMLOCK, (memlockH, memlockH)) setrlimit(RLIMIT_MEMLOCK, (memlockH, memlockH))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment