add timeout to executors

This commit is contained in:
Brian Seymour 2018-09-21 00:27:19 -05:00
parent 2c99873dcb
commit 97ba014d25
7 changed files with 7 additions and 7 deletions

View File

@ -63,6 +63,6 @@ docker run \
-v $dir/executors/cpp:/executor_cpp:ro \
-v $dir/executors/go:/executor_go:ro \
piston \
timeout -s HUP 15 /$bin /$file $file 2>&1
/$bin /$file $file 2>&1
rm -f /tmp/$file

View File

@ -1,4 +1,4 @@
#!/bin/sh
gcc -o binary -x c $1
./binary
timeout -s HUP 2 ./binary

View File

@ -1,4 +1,4 @@
#!/bin/sh
g++ -o binary -x c $1
./binary
timeout -s HUP 2 ./binary

View File

@ -1,3 +1,3 @@
#!/bin/sh
nodejs $*
timeout -s HUP 2 nodejs $*

View File

@ -1,3 +1,3 @@
#!/bin/sh
python2 $*
timeout -s HUP 2 python2 $*

View File

@ -1,3 +1,3 @@
#!/bin/sh
python3.6 $*
timeout -s HUP 2 python3.6 $*

View File

@ -1,3 +1,3 @@
#!/bin/sh
ruby $*
timeout -s HUP 2 ruby $*