From 941fa8e5fc847942f6478add11d0671843c8a240 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Thu, 7 Apr 2016 21:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8CentOS=E7=AD=89=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E8=AE=BF=E9=97=AE/dev=E4=BC=9A=E6=9C=89ioctl?= =?UTF-8?q?=E7=9A=84=E7=B3=BB=E7=BB=9F=E8=B0=83=E7=94=A8=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E5=AF=BC=E8=87=B4spj=E7=A8=8B=E5=BA=8F=E5=87=BA?= =?UTF-8?q?=E9=94=99=EF=BC=8C=E8=BF=99=E9=87=8C=E6=94=B9=E4=B8=BA=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E5=88=B0=E6=96=87=E4=BB=B6=E4=B8=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- judge/spj_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/spj_client.py b/judge/spj_client.py index 35adb05a..5e24aba1 100644 --- a/judge/spj_client.py +++ b/judge/spj_client.py @@ -13,7 +13,7 @@ def file_exists(path): def spj(path, max_cpu_time, max_memory, in_path, user_out_path): if file_exists(in_path) and file_exists(user_out_path): - result = judger.run(path=path, in_file="/dev/null", out_file="/dev/null", + result = judger.run(path=path, in_file=in_path, out_file="/tmp/spj.out", max_cpu_time=max_cpu_time, max_memory=max_memory, args=[in_path, user_out_path], env=["PATH=" + os.environ.get("PATH", "")], use_sandbox=True, use_nobody=True)