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 /genkernel
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 'genkernel')
-rwxr-xr-xgenkernel2
1 files changed, 2 insertions, 0 deletions
diff --git a/genkernel b/genkernel
index 754f4b11..3c9d0e7b 100755
--- a/genkernel
+++ b/genkernel
@@ -58,6 +58,8 @@ fi
TEMP=$(mktemp -d -p "${TMPDIR}" gk.XXXXXXXX 2>/dev/null)
[ -z "${TEMP}" ] && gen_die "mktemp failed!"
+export GK_MASTER_PID=${BASHPID}
+
set_default_gk_trap
BUILD_KERNEL="no"