From owner-freebsd-net@FreeBSD.ORG Mon Mar 29 01:07:48 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AE3216A4CE for ; Mon, 29 Mar 2004 01:07:48 -0800 (PST) Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54DEA43D3F for ; Mon, 29 Mar 2004 01:07:47 -0800 (PST) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id i2T97kAP040549; Mon, 29 Mar 2004 12:07:46 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.12.9p2/8.12.9) id i2T96pV3003830; Mon, 29 Mar 2004 12:06:51 +0300 (EEST) (envelope-from netch) Date: Mon, 29 Mar 2004 12:06:51 +0300 From: Valentin Nechayev To: Max Khon Message-ID: <20040329090651.GA3788@iv.nn.kiev.ua> References: <20040324195934.GA76265@samodelkin.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040324195934.GA76265@samodelkin.net> X-42: On Organization: Dark side of coredump cc: freebsd-net@freebsd.org Subject: Re: race condition in ipfw restart (please review the fix) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 09:07:48 -0000 Thu, Mar 25, 2004 at 01:59:34, fjoe (Max Khon) wrote about "race condition in ipfw restart (please review the fix)": MK> ipfw restart has race condition: there is "sleep 2" statement after MK> killall natd but if natd will not die in 2 seconds ipfw can't MK> start nat daemon (natd: Unable to bind divert socket.: Address already in use). Is there any reason to wait until natd finishes polite restart? I usually kill it with -KILL, result is the same. -netch-