Re: Ctrl-c abort of dhclient during rc.d start aborts all network configuration

From: Brooks Davis (brooks_at_one-eyed-alien.net)
Date: 08/31/05

  • Next message: Brooks Davis: "Re: Ctrl-c abort of dhclient during rc.d start aborts all network configuration"
    Date: Wed, 31 Aug 2005 13:56:14 -0700
    To: Charles Swiger <cswiger@mac.com>
    
    

    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
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Brooks Davis: "Re: Ctrl-c abort of dhclient during rc.d start aborts all network configuration"

    Relevant Pages

    • Re: User Authentication - checking to see if they are logged in: now its a problem
      ... > Dreamweaver MX 2004 to build a user authentication page. ... > and then head off to either a success or failure page. ... no matter what I do the restricted access page ...
      (alt.php)
    • Re: When to use automatic variables and when to use malloc
      ... think of applications like video encoding. ... since there may be useful data to be flushed, so I should call exit. ... EXIT_FAILURE, which means "failure " on all systems, ... The program's exit status should not be confused with the errno ...
      (comp.lang.c)
    • Re: When to use automatic variables and when to use malloc
      ... EXIT_FAILURE, which means "failure " on all systems, ... everything from VMS' highly-structured system of condition codes ... The program's exit status should not be confused with the errno ... The Standard does not require mallocto set errno; ...
      (comp.lang.c)
    • Mad Weak Chillings
      ... Success! ... Failure. ... Completed to exits A and B on Outrun 2, and exit A on Outrun 2 SP. ...
      (uk.games.video.misc)
    • Re: Return Value from Background System Call
      ... What am I trying to do: I am trying to launch a browser from a perl/Tk ... fact that 0 does not indicate failure does not necessarily imply that it ... and that the launched app returned a 0 exit status. ... The meaning of a 0 exit status has to be interpreted in the context of the ...
      (comp.lang.perl.misc)