update piston
This commit is contained in:
parent
16f4c03a80
commit
27f4443719
|
@ -71,6 +71,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
|
||||||
"r",
|
"r",
|
||||||
"ruby",
|
"ruby",
|
||||||
"swift",
|
"swift",
|
||||||
|
"brainfuck", "bf",
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the supplied language is supported
|
// check if the supplied language is supported
|
||||||
|
|
|
@ -81,6 +81,9 @@ case "$lang" in
|
||||||
"swift")
|
"swift")
|
||||||
bin=swift
|
bin=swift
|
||||||
;;
|
;;
|
||||||
|
"brainfuck" | "bf")
|
||||||
|
bin=brainfuck
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "invalid language"
|
echo "invalid language"
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
cd /tmp/$2
|
||||||
|
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 bf code.code"
|
Loading…
Reference in New Issue