From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2a4e060a86fbc30c,start X-Google-Attributes: gidfee84,public From: serrahim@lulu.iic.uam.es () Subject: How to kill a CLOSE_WAIT state socket? Date: 1997/01/10 Message-ID: <5b5na1$892@acebo.sdi.uam.es>#1/1 X-Deja-AN: 208949315 organization: Universidad Autonoma de Madrid, Spain newsgroups: comp.unix.osf.osf1 Sometimes, when I exit abnormally from a program that creates a TCP/IP socket, it is imposible for me to restart the same program, because calling to function 'bind' fails due to 'address already in use'. Using netstat -a , Ican see that the open socket is in CLOSE_WAIT state, and I don't know how to check how much time it is going to be in such state, and how can I 'kill' this socket. (of course without rebooting my machine). My OS is OSF1 V3.2 Thanks in advance for any help. Pedro Serrahima.