gotsh: do not set POLLOUT flag when there is no data to send
commitd95d69074c849c2f95e9f12f2cd4403a60ba30fe
authorStefan Sperling <stsp@stsp.name>
Sun, 20 Aug 2023 14:26:29 +0000 (20 14:26 +0000)
committerThomas Adam <thomas@xteddy.org>
Wed, 23 Aug 2023 11:26:30 +0000 (23 12:26 +0100)
treef974c895822f58354bacaa56c2f3bf092eedd443
parentd3f5ca65eb6fe66739a2a3b333309c225d04e987
gotsh: do not set POLLOUT flag when there is no data to send

Prevent an endless polling loop on Linux where POLLOUT and POLLHUP
can both be reported via pollfd revents.
lib/serve.c