mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
add timeout kill to lxc attach call to prevent resource limits from performing the kill
This commit is contained in:
parent
35985136ec
commit
16f4c03a80
1 changed files with 5 additions and 4 deletions
|
@ -87,7 +87,8 @@ case "$lang" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# runner
|
# runner
|
||||||
lxc-attach -n piston -- \
|
timeout -s KILL 10 \
|
||||||
|
lxc-attach -n piston -- \
|
||||||
/bin/bash -c "\
|
/bin/bash -c "\
|
||||||
PATH=/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin \
|
PATH=/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin \
|
||||||
bash /exec/$bin $newinc $epoch 2>&1 | head -c 65536"
|
bash /exec/$bin $newinc $epoch 2>&1 | head -c 65536"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue