From owner-freebsd-arch@FreeBSD.ORG Sat Jun 21 14:36:22 2014 Return-Path: Delivered-To: freebsd-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 49EC0AC6; Sat, 21 Jun 2014 14:36:22 +0000 (UTC) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE9BD27DD; Sat, 21 Jun 2014 14:36:21 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id i13so4079275qae.5 for ; Sat, 21 Jun 2014 07:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=iCBbmQj53+KCPrk51mu/9sauCvMYGORgx54ItgX9ku4=; b=Pyei78rTYl89lN3H6i37eEC1uahQpIugc3AcJt0gjQ1PcCU3Ppfm1YhPgj4zqiseJz uojSLlhC7OmsM6fpsyMuVe5hjvAVKNCJxMrp9zaJzm2sBE6f+Y2HeUD8jwSp+3Dx67K/ ulr4ISrov938rL8BylWHCL80eq7YKdYD/0ZjF9hNZ1wmzkcQDyqvVpJD3lmYLbc4rNWb HFaIDoIUTyU8u4z30B99Z6UudxO6/dPD43aamRGr4c5ENgl6zglfF8lpRTSRv9CMqdjN fTD79LmvnB6IGS+ZGGDJO+/+bF/MISsladfMd9G1Dh3o/Z6Oby17cxUo5KiB38fo91lk Uf1g== MIME-Version: 1.0 X-Received: by 10.140.35.212 with SMTP id n78mr14183241qgn.87.1403361380919; Sat, 21 Jun 2014 07:36:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.43.134 with HTTP; Sat, 21 Jun 2014 07:36:20 -0700 (PDT) In-Reply-To: <20140621104031.GM31367@funkthat.com> References: <20140618231318.GH31367@funkthat.com> <201406190917.16458.jhb@freebsd.org> <20140621104031.GM31367@funkthat.com> Date: Sat, 21 Jun 2014 07:36:20 -0700 X-Google-Sender-Auth: SlUNOx-Pj1EtKLsMnV8dxwJclQ0 Message-ID: Subject: Re: conflict between netif and pccard_ether... From: Adrian Chadd To: John Baldwin , "freebsd-arch@freebsd.org" , Rui Paulo Content-Type: text/plain; charset=UTF-8 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: Sat, 21 Jun 2014 14:36:22 -0000 Why'd you remove these: -DCONFIG_GAS \ -DPKCS12_FUNCS ? -a On 21 June 2014 03:40, John-Mark Gurney wrote: > John Baldwin wrote this message on Thu, Jun 19, 2014 at 09:17 -0400: >> 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. > > Ok, I converted wpa_supplicant to use pidfile(3), and it successfully > fixes the issue I had... I get the error that wpa_supplicant is already > running... It looks like in my case, devd was beating out netif in > launching wpa_sup... > > I've attached the patch... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"