pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk catch locking failure case where we couldn't find t...
details: https://anonhg.NetBSD.org/pkgsrc/rev/71a2857ba7be
branches: trunk
changeset: 477495:71a2857ba7be
user: grant <grant%pkgsrc.org@localhost>
date: Sat Jul 03 22:11:56 2004 +0000
description:
catch locking failure case where we couldn't find the parent's process
ID. from Roland Illig.
diffstat:
mk/bsd.pkg.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 6e0fd2b75163 -r 71a2857ba7be mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Sat Jul 03 22:07:11 2004 +0000
+++ b/mk/bsd.pkg.mk Sat Jul 03 22:11:56 2004 +0000
@@ -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 @@
_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 \
Home |
Main Index |
Thread Index |
Old Index