From d07e563cb453c54eba21380fe95d5b28f453791f Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Sat, 23 Jan 2021 15:08:14 -0600 Subject: [PATCH] fix d --- lxc/executors/cpp | 2 +- lxc/executors/crystal | 2 +- lxc/executors/d | 2 +- lxc/tests/{test.d => d.d} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename lxc/tests/{test.d => d.d} (100%) 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