# HG changeset patch # User jittat # Date 2008-07-26 04:27:34 # Node ID 05b65064b5ca0dd89c5baf12e745f57df21db2f4 # Parent 3dcc15f24294757ec788a37d4ddad57f36a6df1b allow __NR_time in box git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@266 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/std-script/box.cc b/std-script/box.cc --- a/std-script/box.cc +++ b/std-script/box.cc @@ -300,6 +300,7 @@ case __NR__sysctl: return (filter_syscalls == 1); case __NR_times: + case __NR_time: return allow_times; case __NR_kill: if (u->regs.ebx == box_pid) diff --git a/std-script/run b/std-script/run --- a/std-script/run +++ b/std-script/run @@ -82,7 +82,7 @@ # Run the program. #run_command = "/usr/bin/time -f \"#{time_output_format}\" 2>run_result #{problem_home}/script/box_new -a 2 -f -t #{time_limit} -m #{mem_limit} -i #{input_file_name} -o output.txt #{program_name}" -run_command = "#{problem_home}/script/box -a 2 -f -t #{time_limit} -m #{mem_limit} -i #{input_file_name} -o output.txt #{program_name} 2>run_result" +run_command = "#{problem_home}/script/box -a 2 -f -T -t #{time_limit} -m #{mem_limit} -i #{input_file_name} -o output.txt #{program_name} 2>run_result" log "Running test #{test_num}..." log run_command log