Re: UNIX domain socket hanging around when not closed

Alan Cox (alan@lxorguk.ukuu.org.uk)
07 Aug 2002 18:18:10 +0100


On Wed, 2002-08-07 at 16:32, Jan Hudec wrote:
> What I do is create a unix socket in /tmp and wait for clients to
> connect in. The program removes the socket dentry when it shuts down,
> but it sometimes crashes and the socket remains there.
>
> Is there some reason the socket should remain unless explicitely
> removed?

Thats what is supposed to happen. If its dead then in your server you
can remove it and create a new one.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/