Skip to content

Commit 9567026

Browse files
authored
Merge pull request #551 from tock/fetch-bashpid
lib: fetch: $BASHPID -> $$
2 parents 313bf08 + 29dd65a commit 9567026

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/fetch-libc++.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if which flock 2>&1 >/dev/null; then
103103
elif which shlock 2>&1 >/dev/null; then
104104
while true; do
105105
trap "rm -f ${ZIP_FILE}.lock" EXIT
106-
if shlock -f "${ZIP_FILE}.lock" -p "$BASHPID"; then
106+
if shlock -f "${ZIP_FILE}.lock" -p "$$"; then
107107
break
108108
else
109109
echo "Could not acquire lock on ${ZIP_FILE}.lock, retrying in 10..." >&2

lib/fetch-newlib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if which flock 2>&1 >/dev/null; then
101101
elif which shlock 2>&1 >/dev/null; then
102102
while true; do
103103
trap "rm -f ${ZIP_FILE}.lock" EXIT
104-
if shlock -f "${ZIP_FILE}.lock" -p "$BASHPID"; then
104+
if shlock -f "${ZIP_FILE}.lock" -p "$$"; then
105105
break
106106
else
107107
echo "Could not acquire lock on ${ZIP_FILE}.lock, retrying in 10..." >&2

0 commit comments

Comments
 (0)