From owner-cvs-src@FreeBSD.ORG Mon Mar 12 13:08:57 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 3000E16A404; Mon, 12 Mar 2007 13:08:57 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 0DEF413C4B0; Mon, 12 Mar 2007 13:08:57 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l2CD8uww098048; Mon, 12 Mar 2007 13:08:56 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l2CD8urI098047; Mon, 12 Mar 2007 13:08:56 GMT (envelope-from yar) Message-Id: <200703121308.l2CD8urI098047@repoman.freebsd.org> From: Yar Tikhiy Date: Mon, 12 Mar 2007 13:08:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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 13:08:57 -0000 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. Revision Changes Path 1.129 +1 -3 src/sbin/ifconfig/ifconfig.c