summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 8bc6f17fc..83270506c 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -150,7 +150,7 @@ die() {
[ -n "$EBUILD_EXIT_STATUS_FILE" ] && > "$EBUILD_EXIT_STATUS_FILE"
# subshell die support
- kill -s SIGTERM ${EBUILD_MASTER_PID}
+ [[ $BASHPID = $EBUILD_MASTER_PID ]] || kill -s SIGTERM $EBUILD_MASTER_PID
exit 1
}