From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 14:40:07 2012 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED14D106564A for ; Mon, 12 Mar 2012 14:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D66B78FC14 for ; Mon, 12 Mar 2012 14:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2CEe7nA074987 for ; Mon, 12 Mar 2012 14:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CEe7a0074986; Mon, 12 Mar 2012 14:40:07 GMT (envelope-from gnats) Date: Mon, 12 Mar 2012 14:40:07 GMT Message-Id: <201203121440.q2CEe7a0074986@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Ian Lepore Cc: Subject: Re: bin/165477: [rc] dhclient is run twice X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ian Lepore List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 14:40:08 -0000 The following reply was made to PR bin/165477; it has been noted by GNATS. From: Ian Lepore To: bug-followup@FreeBSD.org, wblock@FreeBSD.org Cc: Subject: Re: bin/165477: [rc] dhclient is run twice Date: Mon, 12 Mar 2012 08:31:24 -0600 I did some investigation of this when the question first came up on the mailing lists. Here's what I learned... The first instance of dhclient is started normally by rc.d/dhclient. Later, when devd starts, it processes a bach of bufferered up events delivered to it by devfs, and one of those events is a LINK_UP event which causes devd to run "rc.d/dhclient quietstart". Changes introduced in r226345, merged to 8-stable in r231278, changed the behavior of dhclient with the "quietstart" parameter so that it is no longer quiet about the fact that an instance of dhclient is already running.