Date: Thu, 25 Feb 1999 10:20:05 -0800 (PST) From: David Hedley <david@inty.co.uk> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/10028: TCP problem binding port - address already in use Message-ID: <199902251820.KAA24633@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/10028; it has been noted by GNATS. From: David Hedley <david@inty.co.uk> To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: kern/10028: TCP problem binding port - address already in use Date: Thu, 25 Feb 1999 08:45:41 +0000 (GMT) Problem resolved. It seems that the program in question restarts 'routed' as part of its operation. When it execs a new routed, the child process inherits it's parents open file descriptors - including any active sockets. Consequently when the server process restarts, it can no longer bind to its socket. A stupid problem really, and one easily fixed by setting the close-on-exec flag on the sockets in question. My apologies for troubling everyone with this, and thanks for everyone's efforts in trying to track it down - I should have known better than to have thought it a problem with FreeBSD! David -- Dr David Hedley,Inty Development,Bristol,UK,0117 9050500,http://www.inty.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902251820.KAA24633>