h.b.furuseth@usit.uio.no wrote:
Fixed the easy cases in HEAD. WAKE_LISTENER under --without-threads remains.
As I recall, the only reason we needed the waking counter here was to make sure we never filled the pipe buffer, which would cause a single-threaded server to deadlock. We can simply set the pipe to nonblocking instead, and eliminate the counter.
The other point was that if there was already a pending wake event, there was no reason to write another one.