Subject: bug#29955: 25.2; stale lock files can hang emacs --batch

From: Glenn Morris <[email-masked]>
Date: Mon, 22 Jan 2018 14:58:42 -0500

David Bremner wrote:

>         tempdir=$(mktemp -d)
>         echo working in $tempdir
>         cd $tempdir
>         touch foo
>         ln -s [email-masked]:1487632643 .#foo
>         emacs -Q --batch  --eval "(add-hook 'kill-emacs-hook (lambda () (write-file \"foo\")))"

Great recipe, thanks.
I'd hoped this issue (which is the same as https://debbugs.gnu.org/22622,
by the way) would have been fixed by

http://lists.gnu.org/r/emacs-diffs/2017-04/msg00178.html

but it sadly it seems not, for reasons not immediately apparent to me.