fix poll() spin when a channel's output fd closes without data in the
authordjm <djm@openbsd.org>
Wed, 30 Mar 2022 21:10:25 +0000 (21:10 +0000)
committerdjm <djm@openbsd.org>
Wed, 30 Mar 2022 21:10:25 +0000 (21:10 +0000)
commit85f274b89bba9ab4c400b94f990d97c9578e8498
treee00992bb1ee81430a149d7f6ddaa62b564f9a74a
parentee493d661e89343210e80dc5c7aa443a0e8531ad
fix poll() spin when a channel's output fd closes without data in the
channel buffer. Introduce more exact packing of channel fds into the
pollfd array. fixes bz3405 and bz3411; ok deraadt@ markus@
usr.bin/ssh/channels.c
usr.bin/ssh/channels.h