Home GnuPG
Diffusion GnuPG f256bab03e2f

Avoid double-close in unusual dotlock situations.
f256bab03e2fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Feb 12 2015, 6:26 PM
Parents
rGb2359db21c1e: gpg: Allow predefined names as answer to the keygen.algo prompt.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGf256bab03e2f: Avoid double-close in unusual dotlock situations. (authored by Werner Koch <wk@gnupg.org>).Feb 12 2015, 6:26 PM