Networking Forums

Networking Forums > Computer Networking > Linux Networking > Killing a socket

Reply
Thread Tools Display Modes

Killing a socket

 
 
Frank Samuelson
Guest
Posts: n/a

 
      01-27-2005, 09:04 PM
I need to kill a socket without killing the process that
created it. Can I do this?

Here's the connection from netstat on the computer 'wolf':
tcp 0 0 wolf:57892 pup230:26754 ESTABLISHED

I know the connection is gone (pup230 is down).
If I can get Linux to realize this socket should be dead,
my process will properly handle the exception and continue on.

Thanks for any help.

-Frank

 
Reply With Quote
 
 
 
 
jimxu
Guest
Posts: n/a

 
      01-28-2005, 07:23 AM
Maybe you can write some codes in your process:
receive a signal, then close your socket fd.
So, when you send a signal to your process, the socket can be killed.

> I need to kill a socket without killing the process that
> created it. Can I do this?
>
> Here's the connection from netstat on the computer 'wolf':
> tcp 0 0 wolf:57892 pup230:26754 ESTABLISHED
>
> I know the connection is gone (pup230 is down).
> If I can get Linux to realize this socket should be dead,
> my process will properly handle the exception and continue on.
>
> Thanks for any help.
>
> -Frank
>



 
Reply With Quote
 
Frank Samuelson
Guest
Posts: n/a

 
      01-28-2005, 09:52 AM
It's not my program.
It someone else wrote it.

jimxu wrote:
> Maybe you can write some codes in your process:
> receive a signal, then close your socket fd.
> So, when you send a signal to your process, the socket can be killed.


 
Reply With Quote
 
Alexander Clouter
Guest
Posts: n/a

 
      01-28-2005, 11:53 PM
On 2005-01-28, Frank Samuelson <(E-Mail Removed)> wrote:
> It's not my program.
> It someone else wrote it.
>

....use the source luke....

Cheers

Alex

> jimxu wrote:
>> Maybe you can write some codes in your process:
>> receive a signal, then close your socket fd.
>> So, when you send a signal to your process, the socket can be killed.

>

 
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
killing a socket connection from cmdline? mh@pixar.com Linux Networking 7 01-14-2009 12:30 PM
VPN & W2K3-R2 Killing me! DotCom SA Windows Networking 1 11-01-2006 04:14 AM
Killing Zombie Processes ralfthewise Linux Networking 1 09-17-2005 02:55 PM
Killing Sockets Dan Linux Networking 2 03-29-2005 06:21 AM
This router is just killing me. Chris Lee Broadband Hardware 0 11-05-2004 11:14 PM



1 2 3 4 5 6 7 8 9 10 11