Date: Wed, 25 Jun 2003 02:48:47 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Varshavchick Alexander <alex@metrocom.ru> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: How to delete unix socket entries Message-ID: <3EF96FFF.84BF6C1C@mindspring.com> References: <Pine.GSO.4.33.0306251155500.27984-100000@apache.metrocom.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Varshavchick Alexander wrote: > On Wed, 25 Jun 2003, Terry Lambert wrote: > > > whole lot (about 2000!) of entries like these: > > [ ... ] > > > How can I get rid of these extra ones? > > > > kill -9 the process that has them open; if it's important, restart > > it after fixing whatever is causing it to go insane. > > The problem is that the process which opened them was already killed long > time ago, these entries resembles zombi because they seem to exist > by themselves, not connected with any file or process. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EF96FFF.84BF6C1C>
