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/cpp:/executor_cpp:ro \
-v $dir/executors/go:/executor_go:ro \ -v $dir/executors/go:/executor_go:ro \
piston \ piston \
timeout -s HUP 15 /$bin /$file $file 2>&1 /$bin /$file $file 2>&1
rm -f /tmp/$file rm -f /tmp/$file

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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