make.sh: Kill all child processes if unshare terminates

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-05 15:39:05 +00:00
parent 6e6cb04630
commit 6a7053fd82

View File

@@ -647,6 +647,9 @@ enterchroot() {
# Mount /proc so that the build environment does not see
# any foreign processes.
"--mount-proc=${BUILD_DIR}/proc"
# If unshare is asked to terminate, terminate all child processes
"--kill-child"
)
PATH="${PATH}" \