mirror of
https://github.com/9001/copyparty.git
synced 2025-12-27 10:15:16 -05:00
prisonparty: clean exit on sigterm/int
This commit is contained in:
@@ -122,5 +122,7 @@ export LOGNAME="$USER"
|
||||
#echo "pybin [$pybin]"
|
||||
#echo "pyarg [$pyarg]"
|
||||
#echo "cpp [$cpp]"
|
||||
chroot --userspec=$uid:$gid "$jail" "$pybin" $pyarg "$cpp" "$@"
|
||||
|
||||
chroot --userspec=$uid:$gid "$jail" "$pybin" $pyarg "$cpp" "$@" &
|
||||
p=$!
|
||||
trap 'kill $p' INT TERM
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user