~vorlon/ubuntu/raring/upstart/lp.1199778

Viewing all changes in revision 401.

  • Committer: Scott James Remnant
  • Date: 2007-02-03 23:15:28 UTC
  • Revision ID: scott@netsplit.com-20070203231528-dlomg9ktqm4v1bwq
* init/main.c (main): Being unable tp open the control socket, or
parse the configuration, should be a fatal error; stop being so
damned liberal! <g>   Don't reset the signal state if we're
being restarted, as this loses any pending signals -- be happy
that our parent left them in a good state.  Set SIGCHLD to the
standard handler, otherwise we might lose this before we start
the main loop (which does the same anyway).
(term_handler): Rework so we don't need to close and open the
control socket; instead we just close it in the child that's
going to send the state, and notify the parent that it's safe to
exec (which will cause it to be closed so the new init can open it).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: