diff --git a/docker/execute b/docker/execute index d21406d..0d73f99 100755 --- a/docker/execute +++ b/docker/execute @@ -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 diff --git a/docker/executors/c b/docker/executors/c index 5a4c471..7ae5108 100755 --- a/docker/executors/c +++ b/docker/executors/c @@ -1,4 +1,4 @@ #!/bin/sh gcc -o binary -x c $1 -./binary +timeout -s HUP 2 ./binary diff --git a/docker/executors/cpp b/docker/executors/cpp index 8ddd248..2dfd5f3 100755 --- a/docker/executors/cpp +++ b/docker/executors/cpp @@ -1,4 +1,4 @@ #!/bin/sh g++ -o binary -x c $1 -./binary +timeout -s HUP 2 ./binary diff --git a/docker/executors/node b/docker/executors/node index 027e7d7..4998e25 100755 --- a/docker/executors/node +++ b/docker/executors/node @@ -1,3 +1,3 @@ #!/bin/sh -nodejs $* +timeout -s HUP 2 nodejs $* diff --git a/docker/executors/python2 b/docker/executors/python2 index de90a94..4b321a2 100755 --- a/docker/executors/python2 +++ b/docker/executors/python2 @@ -1,3 +1,3 @@ #!/bin/sh -python2 $* +timeout -s HUP 2 python2 $* diff --git a/docker/executors/python3 b/docker/executors/python3 index 5dafcf7..25258ba 100755 --- a/docker/executors/python3 +++ b/docker/executors/python3 @@ -1,3 +1,3 @@ #!/bin/sh -python3.6 $* +timeout -s HUP 2 python3.6 $* diff --git a/docker/executors/ruby b/docker/executors/ruby index ea4534b..598b5b0 100755 --- a/docker/executors/ruby +++ b/docker/executors/ruby @@ -1,3 +1,3 @@ #!/bin/sh -ruby $* +timeout -s HUP 2 ruby $*