mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 11:36:27 +02:00
Janitor now uses real user IDs instead of effective user IDs
If runner spawns processes with a different effective UID (e.g. passwd), janitor needs to kill those too
This commit is contained in:
parent
16c585d41d
commit
e8f5225849
1 changed files with 2 additions and 2 deletions
|
@ -40,9 +40,9 @@ timeout -s KILL 20 \
|
||||||
# process janitor
|
# process janitor
|
||||||
lxc-attach --clear-env -n piston -- \
|
lxc-attach --clear-env -n piston -- \
|
||||||
/bin/bash -c "
|
/bin/bash -c "
|
||||||
while pgrep -u runner$runner > /dev/null
|
while pgrep -U runner$runner > /dev/null
|
||||||
do
|
do
|
||||||
pkill -u runner$runner --signal SIGKILL
|
pkill -U runner$runner --signal SIGKILL
|
||||||
done
|
done
|
||||||
|
|
||||||
find /tmp -user runner$runner -delete
|
find /tmp -user runner$runner -delete
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue