add timeout for rustc
This commit is contained in:
parent
6615ec4519
commit
8cc1f6c2b5
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /tmp/$2
|
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
|
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin
|
||||||
|
|
Loading…
Reference in New Issue