diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 08:34:28 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-14 13:58:12 +0200 |
commit | 6a32cfda84e76548864fcfb90d124bba91393c05 (patch) | |
tree | e9e9afc2819403676acac4b1b99694890d122169 /genkernel | |
parent | genkernel: Call determine_real_args() earlier (diff) | |
download | genkernel-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-x | genkernel | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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" |