diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-09 02:11:44 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-09 02:11:44 +0000 |
commit | 56bd08ba998aa9a1010ef66dc827b1f67005d2e5 (patch) | |
tree | cb070484e81b8a816162bd4a30b8961f919c1955 /mk/internal | |
parent | 9855d392a69eab217e00cd517b3fc6888d4095cf (diff) | |
download | pkgsrc-56bd08ba998aa9a1010ef66dc827b1f67005d2e5.tar.gz |
In the status and error messages, say _which_ lock is being held by
another process. It's a little more verbose now, but it helps
understanding what goes on.
Diffstat (limited to 'mk/internal')
-rw-r--r-- | mk/internal/locking.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/internal/locking.mk b/mk/internal/locking.mk index 4943835212e..cda52892bdf 100644 --- a/mk/internal/locking.mk +++ b/mk/internal/locking.mk @@ -1,4 +1,4 @@ -# $NetBSD: locking.mk,v 1.2 2006/08/04 20:52:27 rillig Exp $ +# $NetBSD: locking.mk,v 1.3 2006/11/09 02:11:44 rillig Exp $ # # This file provides the following .USE targets: @@ -77,10 +77,10 @@ _ACQUIRE_LOCK_CMD= \ fi; \ lockpid=`${CAT} "$$lockfile"`; \ case ${PKGSRC_LOCKTYPE:Q}"" in \ - once) ${ERROR_MSG} "Lock is held by pid $$lockpid"; \ + once) ${ERROR_MSG} "Lock ${.TARGET} is held by pid $$lockpid"; \ exit 1; \ ;; \ - sleep) ${STEP_MSG} "Lock is held by pid $$lockpid"; \ + sleep) ${STEP_MSG} "Lock ${.TARGET} is held by pid $$lockpid"; \ ${SLEEP} ${PKGSRC_SLEEPSECS}; \ ;; \ esac; \ |