summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-11-03 08:56:39 +0000
committerru <ru@FreeBSD.org>2005-11-03 08:56:39 +0000
commitf5e9153f170bd9a9775c38999953cf040b918899 (patch)
treebc4b0a2cc3fc6bb520321021feb7cad53a41f5f8 /Makefile.inc1
parent94d7cede201189260f4418cb20a641ce856ad4b8 (diff)
downloadFreeBSD-src-f5e9153f170bd9a9775c38999953cf040b918899.zip
FreeBSD-src-f5e9153f170bd9a9775c38999953cf040b918899.tar.gz
Serialize access to the info/dir file; needed for parallel installs.
Reported by: scottl I'm not very fond of using the non-standard lockf(1) here, but I have no better idea at the moment. NetBSD uses ln(1) to create a lock file, but this approach can result in a deadlock if make is interrupted, leaving an orphaned lock file.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 0c270e9..f998063 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -522,7 +522,7 @@ distributeworld installworld: installcheck
mkdir -p ${INSTALLTMP}
for prog in [ awk cap_mkdb cat chflags chmod chown \
date echo egrep find grep install-info \
- ln make mkdir mtree mv pwd_mkdb rm sed sh sysctl \
+ ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl \
test true uname wc zic; do \
cp `which $$prog` ${INSTALLTMP}; \
done
OpenPOWER on IntegriCloud