diff --git a/lxc/executors/cpp b/lxc/executors/cpp index 5f7008b..9f7ef27 100755 --- a/lxc/executors/cpp +++ b/lxc/executors/cpp @@ -1,5 +1,5 @@ #!/bin/bash cd /tmp/$2 -g++ -std=c++17 -o binary -x c++ code.code +timeout -s KILL 10 g++ -std=c++17 -o binary -x c++ code.code timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin diff --git a/lxc/executors/crystal b/lxc/executors/crystal index 5530326..a3ce996 100644 --- a/lxc/executors/crystal +++ b/lxc/executors/crystal @@ -1,5 +1,5 @@ #!/bin/bash cd /tmp/$2 -crystal build code.code +timeout -s KILL 10 crystal build code.code timeout -s KILL 3 xargs -a args.args -d '\n' ./code < stdin.stdin diff --git a/lxc/executors/d b/lxc/executors/d index 60b3225..458d5c1 100644 --- a/lxc/executors/d +++ b/lxc/executors/d @@ -3,4 +3,4 @@ cd /tmp/$2 cp code.code code.d timeout -s KILL 10 dmd code.d -xtimeout -s KILL 3 args -a args.args -d '\n' ./code +timeout -s KILL 3 args -a args.args -d '\n' ./code diff --git a/lxc/tests/test.d b/lxc/tests/d.d similarity index 100% rename from lxc/tests/test.d rename to lxc/tests/d.d