From: "Omar Polo" Subject: Re: gotd accept error handling To: Stefan Sperling Cc: gameoftrees@openbsd.org Date: Fri, 03 Oct 2025 13:09:33 +0200 Stefan Sperling wrote: > Prevent gotd looping on unhandled errors raised by accept(). > > gotd would somehow loop on ENOTSOCK in a case observed by "noodle" on IRC. > For now, exit the event loop if an unknown accept error occurs rather > sending a storm of errors to syslog. > > ok? too late for this, but good that's already in the tree. > (I do not understand the root cause of the ENOTSOCK issue. Any ideas?) this worries me a bit tho. if we close the listening socket we should get EBADF, not ENOTSOCK. I can explain this by assuming that we ended up closing the listening socket and then opening something else, before falling back to accept() again where it would complain that's not a socket.q weird