修复代码输出重定向错误的问题 增加了输出结果判断

lrun在运行的时候,输入输出重定向的context是当前的shell,所以不能重定向到进程的tmpfs中。考虑在docker中开辟tmpfs缓存空间。
输出结果比较是采用的md5,暂时没考虑格式错误的情况。
This commit is contained in:
virusdefender
2015-07-06 18:59:30 +08:00
parent f1915a8b33
commit 5f8f2acf82
2 changed files with 48 additions and 22 deletions

View File

@@ -5,11 +5,11 @@
# 这样可以避免同时运行的程序过多导致的cpu占用太高
max_running_number = 10
# 是否使用tmpfs来缓存程序输出。开启可以提高性能在内存不足的情况下可以关闭
use_tmpfs = True
# lrun运行用户的uid
lrun_uid = 1001
# lrun用户组gid
lrun_gid = 1002
lrun_gid = 1002
#judger工作目录
judger_workspace = "/var/judger/"