From owner-freebsd-current@FreeBSD.ORG Wed Aug 31 20:56:15 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69C8B16A41F; Wed, 31 Aug 2005 20:56:15 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 061F343D46; Wed, 31 Aug 2005 20:56:14 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7VKuE3b014564; Wed, 31 Aug 2005 13:56:14 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7VKuEbJ014561; Wed, 31 Aug 2005 13:56:14 -0700 Date: Wed, 31 Aug 2005 13:56:14 -0700 From: Brooks Davis To: Charles Swiger Message-ID: <20050831205614.GI32477@odin.ac.hmc.edu> References: <20050831120730.B39418@fledge.watson.org> <20050831194612.GG32477@odin.ac.hmc.edu> <932461F5-1E5B-4E6C-9109-97A54C128EE5@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <932461F5-1E5B-4E6C-9109-97A54C128EE5@mac.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: Robert Watson , current@freebsd.org Subject: Re: Ctrl-c abort of dhclient during rc.d start aborts all network configuration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 20:56:15 -0000 On Wed, Aug 31, 2005 at 04:26:17PM -0400, Charles Swiger wrote: > On Aug 31, 2005, at 3:46 PM, Brooks Davis wrote: > >>(2) If a dhclient is ctrl-c'd, it would be nice if the rest of the > >>network > >> configuration continued. > > > >I don't see any code in the startup scripts that would cause them to > >exit on failure so the issue is probalby that the signal is being > >delivered to the /etc/rc.d/netif instance. I don't really know > >what the > >solution to that is. > > Add: > > trap "" 2 3 > > ...to the beginning of /etc/rc.d/netif, and a "trap 2 3" at the end, > so the shell ignores SIGQUIT (aka Control-C)? Thanks, that reminded me where to looks. I think I'll probably /etc/rc.d/fsck's example and add: trap : 3 -- Brooks