Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

[merged] atomic_dbus: keep the name until the process exits#770

Closed
larskarlitski wants to merge 1 commit intoprojectatomic:masterfrom
larskarlitski:keep-name
Closed

[merged] atomic_dbus: keep the name until the process exits#770
larskarlitski wants to merge 1 commit intoprojectatomic:masterfrom
larskarlitski:keep-name

Conversation

@larskarlitski
Copy link
Contributor

The call dbus.service.BusName() claims the name while the returned
object is alive. It wasn't stored into a variable, so the name was
released immediately, but the service keeps running (potentially
indefinitely) with no use.

Fix this by calling request_name() directly, so that we can give useful
feedback (and end the process) when the name is already owned by another
process.

Fixes #763

The call dbus.service.BusName() claims the name while the returned
object is alive. It wasn't stored into a variable, so the name was
released immediately, but the service keeps running (potentially
indefinitely) with no use.

Fix this by calling request_name() directly, so that we can give useful
feedback (and end the process) when the name is already owned by another
process.

Fixes #763
@rh-atomic-bot
Copy link

Can one of the admins verify this patch?
I understand the following comments:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

@rhatdan
Copy link
Member

rhatdan commented Nov 26, 2016

bot, add author to whitelist

@rhatdan
Copy link
Member

rhatdan commented Nov 26, 2016

@cgwalters PTAL

@cgwalters
Copy link
Member

I'd be surprised if there wasn't a nicer binding for this somewhere in slip or python-dbus, but eh:

@rh-atomic-bot r+ b2a125f

@rh-atomic-bot
Copy link

⌛ Testing commit b2a125f with merge e937650...

@cgwalters
Copy link
Member

Looks like the fedora/24/atomic failure is the test suite not being safe for concurrent runs on the same system.

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: cgwalters
Pushing e937650 to master...

@rh-atomic-bot rh-atomic-bot changed the title atomic_dbus: keep the name until the process exits [merged] atomic_dbus: keep the name until the process exits Nov 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants