diff --git a/kiss b/kiss index 1a30a45..a313281 100755 --- a/kiss +++ b/kiss @@ -1703,6 +1703,7 @@ args() { KISS_CHOICE="$KISS_CHOICE" \ KISS_COLOR="$KISS_COLOR" \ KISS_TMPDIR="$KISS_TMPDIR" \ + KISS_PID="$KISS_PID" \ "$0" "$action" "$@" return } @@ -1863,7 +1864,7 @@ main() { # to each specific KISS instance. This allows multiple package manager # instances to be run at once. Store the value in another variable so # that it doesn't change beneath us. - pid=$$ + pid=${KISS_PID:=$$} # Catch errors and ensure that build files and directories are cleaned # up before we die. This occurs on 'Ctrl+C' as well as success and error.