HomePhabricator

connector: Check for POLLHUP on in_fd

Authored by albaguirre on Feb 26 2018, 7:30 PM.

Description

connector: Check for POLLHUP on in_fd

POLLHUP needs to be checked on in_fd, which may be a pipe.
A pipe in Linux signals EOF through POLLHUP (see:
http://www.greenend.org.uk/rjk/tech/poll.html)

Without checking POLLHUP, a client could spin up indefinetely
doing ssh_event_dopoll.

Signed-off-by: Alberto Aguirre <albaguirre@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnMar 7 2018, 3:47 PM
Parents
rLIBSSHd11869bdb6df: pki: Add mbedTLS ECDSA key comparison support
Branches
Unknown
Tags
Unknown