--isolate-process true

This commit is contained in:
virusdefender
2015-09-17 18:09:14 +08:00
parent 2d1a95aa44
commit 722d79a1c8

View File

@@ -58,6 +58,7 @@ class JudgeClient(object):
""" """
# todo 系统调用白名单 chroot等参数 # todo 系统调用白名单 chroot等参数
command = "lrun" + \ command = "lrun" + \
" --isolate-process true" + \
" --max-cpu-time " + str(self._max_cpu_time / 1000.0) + \ " --max-cpu-time " + str(self._max_cpu_time / 1000.0) + \
" --max-real-time " + str(self._max_real_time / 1000.0 * 2) + \ " --max-real-time " + str(self._max_real_time / 1000.0 * 2) + \
" --max-memory " + str(self._max_memory * 1000 * 1000) + \ " --max-memory " + str(self._max_memory * 1000 * 1000) + \