On 2008-04-08,
(E-Mail Removed) <(E-Mail Removed)> wrote:
>
>
> Hi
>
> I am testing my network software and it crashes some times.
>
> My software crashed and did not free UDP port. I think that kernel
> structures
> still hold the information for that port. /proc/net/udp has line that
> includes some info.
> I killed my software/process but still the line is in /proc/net/udp.
>
> And when I start my software again it tells me "UDP port in use".
>
> I can clear the situation by rebooting the PC but is there some other
> way
> to "free the UDP port"? So, that I do not need to reboot PC.
>
> Help appreciated...ip
Are you sure the process is really killed? Try lsof or "netstat -unlp"