Networking Forums

Networking Forums > Computer Networking > Linux Networking > listening socket alive even after process death ?

Reply
Thread Tools Display Modes

listening socket alive even after process death ?

 
 
yuri@tsoft.com
Guest
Posts: n/a

 
      08-16-2005, 09:01 PM
I have a program (prog#1) that listens for TCP connections on port
37708 on host host#1.
Many other processes (prog#2) connect and communicate with it from a
variaty of other hosts.

I kill listening program on host#1 with SIGINT.
All prog#2's are still in select waiting to get something from prog#1.
Sockets seem to be all alive on the other end although listening
program have died.

Moreover I can even connect to host#1 on the same port with telnet.

netstat -p -n --inet
shows lines like:
....
tcp 23 0 10.30.75.219:37708 10.30.78.156:37858
ESTABLISHED -
tcp 23 0 10.30.75.219:37708 10.30.78.144:36590
ESTABLISHED -
....
Last column is supposed to show PID of the process but it actually is
just dash.

How can this be that process have died and it's sockets didn't ?

>uname
>Linux xxx.xxx.com 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:34:58 EDT 2004 x86_64 x86_64 x86_64 GNU/Linux


Thanx,
Yuri

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what's the meaning: listening on a socket ? SL Linux Networking 4 02-26-2012 01:21 AM
Disonnecting a TCP listening socket true801@gmail.com Linux Networking 12 09-22-2008 07:14 PM
Socket connection to port fails despite port open / listening ! Jack Linux Networking 2 12-19-2007 03:46 PM
Socket and Process Accounting James Stickland Windows Networking 0 01-18-2007 05:30 AM
Apache - No listening socket... =?Utf-8?B?RWxqb2pv?= Windows Networking 0 02-22-2004 12:31 PM



1 2 3 4 5 6 7 8 9 10 11