From owner-freebsd-arch@FreeBSD.ORG Thu Jun 19 13:35:05 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6EC3D5D3; Thu, 19 Jun 2014 13:35:05 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 482C3211B; Thu, 19 Jun 2014 13:35:05 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3E851B943; Thu, 19 Jun 2014 09:35:03 -0400 (EDT) From: John Baldwin To: freebsd-arch@freebsd.org Subject: Re: conflict between netif and pccard_ether... Date: Thu, 19 Jun 2014 09:17:16 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) References: <20140618231318.GH31367@funkthat.com> In-Reply-To: <20140618231318.GH31367@funkthat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201406190917.16458.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 19 Jun 2014 09:35:03 -0400 (EDT) Cc: arch@freebsd.org, John-Mark Gurney X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 13:35:05 -0000 On Wednesday, June 18, 2014 7:13:18 pm John-Mark Gurney wrote: > So, I recently was trying to figure out why wireless on my notebook > wouldn't work.. I would boot up the machine w/o the wireless > configured, uncomment the lines in rc.conf, and then run > "service netif start"... > > Wireless would associate, but when disconnect... After some > investigation, it turns out that two copies of wpa_supplicant are > being launched... I believe one from netif, and another from > pccard_ether launched by devd... > > The issue is that both netif and pccard_ether "claim" ownership of > them. pccard_ether will ignore the ifconfig_ line if NOAUTO is > specified. IMO, we need to make one or the other "own" configuring > and launching the interface... > > There is also the issue that wpa_sup doesn't use proper locking on > the pidfile and allows two copies to be launched... My thoughts > is to convert it to pidfile to fix this issue the easiest... I think this is actually the best fix. dhclient handles this correctly for this reason. > Comments? Suggestions? We had a thread a few months ago about this very topic and I committed changes to the rc.d scripts that I then had to revert because it broke other use cases. Having the redundant start be harmless is the simplest way to handle this. -- John Baldwin