mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-04 05:43:17 +00:00 
			
		
		
		
	prisonparty: clean exit on sigterm/int
This commit is contained in:
		@@ -4,7 +4,7 @@ set -e
 | 
			
		||||
 | 
			
		||||
# install dependencies for audio-*.py
 | 
			
		||||
#
 | 
			
		||||
# linux/alpine: requires {python3,ffmpeg,fftw}-dev py3-{wheel,pip} py3-numpy{,-dev} patchelf cmake
 | 
			
		||||
# linux/alpine: requires gcc g++ make cmake patchelf {python3,ffmpeg,fftw,libsndfile}-dev py3-{wheel,pip} py3-numpy{,-dev}
 | 
			
		||||
# linux/debian: requires libav{codec,device,filter,format,resample,util}-dev {libfftw3,python3}-dev python3-{numpy,pip} vamp-{plugin-sdk,examples} patchelf cmake
 | 
			
		||||
# win64: requires msys2-mingw64 environment
 | 
			
		||||
# macos: requires macports
 | 
			
		||||
 
 | 
			
		||||
@@ -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