diff options
author | Simon Rettberg | 2023-06-05 16:19:22 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-06-05 16:19:22 +0200 |
commit | 64893302017a8dacd25e4946a6ef5648fe59235b (patch) | |
tree | d6b99ee918240067303aa42ce6933ffde54d64aa /core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt | |
parent | [run-virt] Start fspanel after WM, refine traps in subshell (diff) | |
download | mltk-64893302017a8dacd25e4946a6ef5648fe59235b.tar.gz mltk-64893302017a8dacd25e4946a6ef5648fe59235b.tar.xz mltk-64893302017a8dacd25e4946a6ef5648fe59235b.zip |
[run-virt] Make sure cleanexit is not run from subshell
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt')
-rwxr-xr-x | core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt b/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt index f5b79012..241e0f9e 100755 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt @@ -85,6 +85,8 @@ fi readonly LOGFILE main() { + declare -rg MAINPID="$BASHPID" + writelog "MAINPID: $MAINPID" # Functions needed by vmchooser-run_virt (writelog(), cleanexit(), safesource()) declare -rg RUN_VIRT_INCLUDE_DIR="${VMCHOOSER_DIR}/run-virt-includes" if ! source "${RUN_VIRT_INCLUDE_DIR}/vmchooser_runvirt_functions.inc"; then |