Avoid double-close in unusual dotlock situations.
* jnlib/dotlock.c (create_dotlock): Avoid double close due to EINTR.
close(2) says:
close() should not be retried after an EINTR since this may cause a reused descriptor from another thread to be closed.
(backported from commit 628b111fa679612e23c0d46505b1ecbbf091897d)
- Debian-Bug-Id: #773423
- Signed-off-by: Werner Koch <wk@gnupg.org>