aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-14 08:34:28 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-14 13:58:12 +0200
commit6a32cfda84e76548864fcfb90d124bba91393c05 (patch)
treee9e9afc2819403676acac4b1b99694890d122169 /gen_funcs.sh
parentgenkernel: Call determine_real_args() earlier (diff)
downloadgenkernel-6a32cfda84e76548864fcfb90d124bba91393c05.tar.gz
genkernel-6a32cfda84e76548864fcfb90d124bba91393c05.tar.bz2
genkernel-6a32cfda84e76548864fcfb90d124bba91393c05.zip
Add code for genkernel worker
In the future, genkernel will perform tasks such as compilation or unpack in a separated process, primarily to allow for sandbox usage, similar how portage executes ebuilds. Each task will have its own "worker" script. This commit will add the code required to run such a worker. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_funcs.sh')
-rwxr-xr-xgen_funcs.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/gen_funcs.sh b/gen_funcs.sh
index 7cb6232..eddaf8e 100755
--- a/gen_funcs.sh
+++ b/gen_funcs.sh
@@ -284,6 +284,7 @@ gen_die() {
# Cleanup temp dirs and caches if requested
cleanup
+ [[ -n "${GK_MASTER_PID}" && ${BASHPID} != ${GK_MASTER_PID} ]] && kill -s SIGTERM ${GK_MASTER_PID}
exit 1
}