~jamesodhunt/upstart/bug-1083723

Viewing all changes in revision 1396.

  • Committer: James Hunt
  • Date: 2012-12-06 11:38:02 UTC
  • Revision ID: james.hunt@ubuntu.com-20121206113802-24h4iw52wjeill80
* init/control.c: control_restart():
  - Simplified session check.
* util/telinit.c:
  - init_is_upstart(): Removed as redundant.
  - upstart_open(): Removed erroneous comment.
  - restart_upstart(): Changed return values for consistency with other
    calls in main() where an error is expected to set ret to < 0.
  - main(): Just call restart_upstart() in re-exec scenario to avoid the
    creation of a second D-Bus connection.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: