Home GnuPG

estream: Fix gpgrt_poll at EOF.

Description

estream: Fix gpgrt_poll at EOF.

* src/estream.c [HAVE_POLL_H] (_gpgrt_poll): Catch POLLHUP event
for want_read.

At EOF, here is a difference of semantics between poll(2) and
select(2). For poll(2), detection of EOF is an event of POLLHUP, not
POLLIN.

Details

Provenance
gniibeAuthored on Aug 23 2019, 3:30 AM
Parents
rEab87480fc201: estream: Fix gpgrt_poll to prevent waiting indefinitely for others.
Branches
Unknown
Tags
Unknown