Re: Closing an accepting BSD socket from a different thread
On 23 May 2019, at 00:10, Stephan Gatzka <firstname.lastname@example.org> wrote:
You're assuming Unix signals work...
https://lwn.net/Articles/414618/ Unfixable designs
Even if MAIN_LOOP_PERIOD is somewhat longer than the network protocol timeout(s) after which the socket should be closed anyway if the other end disappears?variables. E.g., following is a well-know pattern:Yeah sure, put this is polling and a waste of resources.
No, the only possible solution I see is an additional socket connection via localhost which "signals" poll() and afterwards I can see what needs to be done (e.g. calling close()).Nice.