From owner-cvs-src@FreeBSD.ORG Mon Mar 12 18:33:21 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68B2016A400; Mon, 12 Mar 2007 18:33:21 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 0BB6613C448; Mon, 12 Mar 2007 18:33:21 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 1D8681CC58; Tue, 13 Mar 2007 07:20:49 +1300 (NZDT) Date: Tue, 13 Mar 2007 07:20:49 +1300 From: Andrew Thompson To: Yar Tikhiy Message-ID: <20070312182049.GB80764@heff.fud.org.nz> References: <200703121308.l2CD8urI098047@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703121308.l2CD8urI098047@repoman.freebsd.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 18:33:21 -0000 On Mon, Mar 12, 2007 at 01:08:56PM +0000, Yar Tikhiy wrote: > yar 2007-03-12 13:08:56 UTC > > FreeBSD src repository > > Modified files: > sbin/ifconfig ifconfig.c > Log: > Attempt to load the kernel module only if we are going to create a > new interface. In other cases loading the module is unwanted and > can lead to ill side effects. One such effect found is as follows: > "kldunload if_foo" tells the module to kill all its interfaces, > which results in messages sent to devd; the module unloads. Then > devd starts processing the messages, which ends up in a etc script > running ifconfig fooX, which reloads the module. Great catch! I had been wondering why it had been necessary to unload networking modules twice lately. Andrew