Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

daemon: Exit on idle after txn #606

Closed
wants to merge 5 commits into from
Closed

Commits on Sep 28, 2017

  1. app: Call RegisterClient with well-known name, use retry loop

    This closes a race condition for having the daemon idle exit.  After
    the daemon has released its bus name, the dbus-daemon will no longer
    allow messages through that targeted its unique name.
    
    Since the intention of the `RegisterClient` method is to be the "knock on the
    door", fix this by directly sending a message to the well-known name.
    
    Second, we need to handle the case where the daemon exits without
    replying; @jlebon added a `sleep(10)` invocation after the daemon
    mainloop quit but before we `ReleaseName`, and I verified these two
    things combine to fix that case.
    cgwalters committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    6636e0b View commit details
    Browse the repository at this point in the history
  2. daemon: Exit on idle after ~10-15 seconds

    Now that we have the ability to both track clients and our active transaction,
    and the `RegisterClient` call acts "atomically", let's start doing exit-on-idle
    and return the RAM to the people.
    cgwalters committed Sep 28, 2017
    Configuration menu
    Copy the full SHA
    bb0d5bb View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2017

  1. Configuration menu
    Copy the full SHA
    af3bc36 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c83272 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cda8d7 View commit details
    Browse the repository at this point in the history