svn commit: samba r4289 - branches/SAMBA_3_0/source/lib
trunk/source/lib
Richard Sharpe
rsharpe at richardsharpe.com
Tue Dec 21 05:48:07 GMT 2004
On Tue, 21 Dec 2004, Volker Lendecke wrote:
> On Mon, Dec 20, 2004 at 06:42:59PM +0000, gd at samba.org wrote:
> > This fixes a deadlock-situation when ldapsam is used with the ldapi
> > interface: getpeername won't fail while trying to detect dead
>
> I think a failing getpeername just *will* fail as an indication of a unix
> domain socket whose other end has disconnected.
>
> Anybody out here who knows the standard way to detect a socket who is not
> connected anymore just because the other end has closed the connection?
I thought that a read that returns 0 indicates the other end has closed
the connection?
Regards
-----
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list