mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
add timeout for rustc
This commit is contained in:
parent
6615ec4519
commit
8cc1f6c2b5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue