From 8cc1f6c2b5250679c2ee26b3ea9ffb736726ddd3 Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Fri, 5 Feb 2021 01:24:08 -0600 Subject: [PATCH] add timeout for rustc --- lxc/executors/rust | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc/executors/rust b/lxc/executors/rust index 137dffa..6be216a 100755 --- a/lxc/executors/rust +++ b/lxc/executors/rust @@ -1,5 +1,5 @@ #!/bin/bash cd /tmp/$2 -rustc -o binary code.code +timeout -s KILL 10 rustc -o binary code.code timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin