add timeout kill to lxc attach call to prevent resource limits from performing the kill
This commit is contained in:
parent
35985136ec
commit
16f4c03a80
|
@ -87,10 +87,11 @@ case "$lang" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# runner
|
# runner
|
||||||
lxc-attach -n piston -- \
|
timeout -s KILL 10 \
|
||||||
/bin/bash -c "\
|
lxc-attach -n piston -- \
|
||||||
PATH=/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin \
|
/bin/bash -c "\
|
||||||
bash /exec/$bin $newinc $epoch 2>&1 | head -c 65536"
|
PATH=/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin \
|
||||||
|
bash /exec/$bin $newinc $epoch 2>&1 | head -c 65536"
|
||||||
|
|
||||||
# process janitor
|
# process janitor
|
||||||
lxc-attach -n piston -- \
|
lxc-attach -n piston -- \
|
||||||
|
|
Loading…
Reference in New Issue