How to delete unix socket entries

Varshavchick Alexander alex at metrocom.ru
Wed Jun 25 02:56:35 PDT 2003


On Wed, 25 Jun 2003, Terry Lambert wrote:

> Sockets have to be explicitly closed.  They  are generally
> closed automatically by exit(), which will close all the fd's
> a process has open.
>
> I agree with the previous poster, that it looks like a bug you
> will need to fix or workaround.
>
> It looks like what's happened is that you have a deadly embrace
> deadlock, where you've sent data both ways and then exited.
> One thing to try might be to either turn off keepalive via
> sysctl, or explicitly disable keepalive on the sockets, first
> thing after opening them.
>
> -- Terry
>

Terry, you're right that all this happened because of the server
application core dumped while in the process of sending/receiving data,
and that application is fixed so there are no new zombi sockets, but what
can I do now with the ones which already exist? How can I delete them now?

----
Alexander Varshavchick, Metrocom Joint Stock Company
Phone: (812)118-3322, 118-3115(fax)





More information about the freebsd-hackers mailing list