summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-07-03 22:11:56 +0000
committergrant <grant@pkgsrc.org>2004-07-03 22:11:56 +0000
commitbb8987d2b8f6e8971afa50759fbbfb76995edb7f (patch)
treee0eae752b6632151908fe20ac14d0c1d11e9956c /mk/bsd.pkg.mk
parentb0aaf8b81908e79c4ea89756264a0ff6d09dc442 (diff)
downloadpkgsrc-bb8987d2b8f6e8971afa50759fbbfb76995edb7f.tar.gz
catch locking failure case where we couldn't find the parent's process
ID. from Roland Illig.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index b73f41a9a12..eaf0c639eb4 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1472 2004/07/03 22:07:11 grant Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1473 2004/07/03 22:11:56 grant Exp $
#
# This file is in the public domain.
#
@@ -1786,6 +1786,10 @@ LOCKFILE= ${WRKDIR}/.lockfile
_ACQUIRE_LOCK= \
${_PKG_SILENT}${_PKG_DEBUG} \
ppid=`${PS} -p $$$$ -o ppid | ${AWK} 'NR == 2 { print $$1 }'`; \
+ if ${TEST} "$$ppid" = ""; then \
+ ${ECHO} "No parent process ID found."; \
+ ${FALSE}; \
+ fi; \
while true; do \
if ${TEST} -f /var/run/dmesg.boot -a -f ${LOCKFILE} -a \
/var/run/dmesg.boot -nt ${LOCKFILE}; then \