Home GnuPG

Align 'es_poll' semantics closer with POSIX.

Description

Align 'es_poll' semantics closer with POSIX.

* src/estream.c (_gpgrt_poll): Do not return early if some streams are
found to be ready before even polling the others.

POSIX mandates that all streams are examined and returning early
violates that. It also imposes an order on how the callee serves the
streams, which might be incompatible with the order the callee wants
to serve them, leading to deadlocks.

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on May 17 2017, 3:42 PM
Parents
rEdf1d61d5c84d: build: Prepend the maintainer CFLAGS.
Branches
Unknown
Tags
Unknown