[Gllug] Killing network connections
Robert McKay
robert at mckay.com
Fri Oct 12 17:45:23 UTC 2007
On 10/12/07, Tom Weissmann <trmsw at yahoo.co.uk> wrote:
> This is more out of curiosity than necessity...
>
> Is it possible to close a network connection that "lsof -i" shows me
> without sending a message to either of the processes involved? Can I
> tell the kernel to kill it somehow?
I'm not really sure what you're trying to achieve exactly.
You could try something like this:
gdb -p <pid>
call close(<fd>)
detach
It won't receive any "message", but things that use network
connections tend to check them now and again to see if they're still
there.
Rob.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list