* Editorial edits to the salsa paragraph prepared by Joseph Herlant.
* ud-replicate: remove chroot support as we no longer use
historical dchroot.
+ * ud-replicate: move from lockfile(1) to flock.
[ Ansgar Burchardt ]
* ud-mailgate: include name of unknown host in error message
cleanup ()
{
- rm -f lock
rm -rf $tempdir
rm -f $tempfile
rm -f $tempfile2
SYNCHOST=`ud-config synchost`;
LOCALSYNCON=`ud-config localsyncon`;
EMAILAPPEND=`ud-config emailappend`;
-cd /tmp/
-cd /var/lib/misc || cd /var/state/glibc/ || cd /var/db/
-lockfile -r 1 -l 3600 lock
+cd /var/lib/misc
+exec 200< "."
+if ! flock -w 60 -e 200; then
+ log "Cannot acquire lock on `pwd`"
+ exit 1
+fi
+
trap cleanup exit
case $HOST in