From: iiitac@swan.pyr (Alan Cox) Subject: Re: inetd hangs? Date: 2 Apr 1993 09:42:00 GMT
Inetd makes some (at least for 0.99.6) broken assumptions. Linux allows the
situation to occur when you select, are told there is a new connection and
before you do the accept the connection vanishes. Set the socket nonblocking
before the accept and back to blocking just afterwards. In addition you
may need to check the SIGCLD handling if you get 'Transport endpoint not
connected'.
Alan