Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2001 07:43:35 -0500
From:      Lance Bland <lbland@vvi.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   bind() error on stale port ...
Message-ID:  <5DF8B77C-E7EB-11D5-A5E1-0030659A531A@vvi.com>

next in thread | raw e-mail | index | archive | help
hi-

I get an error on bind() this way:

Start process that calls bind()
Kill process
Start same process up right away.
-> bind() error

The reason is because the port is settling down from the last process 
run before it is put back in the pool of available pool of ports.

I fixed this before with a call to some function (I think that was 
sysctl()??) that said "dereference port immediately when process is no 
longer around".

The problem is: I can't remember the function I called, and the flag it 
needed. It was simple and worked, I just can't remember it.

If some kind soul would please refresh my memory I promise not to forget 
again :-)

-lance



_______________________________________________
Lance Bland
System Administrator at VVI
mailto:lance.bland@vvi.com
http://www.vvi.com
Realtime, bulk and web data reporting and visualization


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5DF8B77C-E7EB-11D5-A5E1-0030659A531A>