[lkml]   [2002]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectdead programs LISTEN sockets remain in netstat (Kernel Version 2.4.18-rc4 SMP)
Quick Summary: Rarely, but several times in the past few weeks now after 
I kill off a process nicely(SIGTERM) its LISTEN sockets remain open...

Some Detail: Because of this, Squid or our server side app cannot
respawn(cannot bind to socket as it's in use), sometimes its squid's
socket that remains in the LISTEN state and other times it's been out
server side app. These are the apps running on our servers which are
restarted most often. I don't see how an application could be
responsible for this behaviour after it is dead. So now I look to the
kernel ;)

My diagnostics below:

lsof -n -P | grep 9000 finds nothing, however netstate shows TCP/9000 in
listen state w/ no parent program?
bash-2.04# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0*
tcp 0 0*
LISTEN 9826/lcdd
tcp 0 0*
tcp 0 0*
tcp 0 0*

ps aux reports no zombie processes...

any help? do you need more info? I have a system in this state now.

thank you :)
/)dam.. . . d o n ' t s t o p.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.033 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site