From 70852a3850a2c6947d9c1004675213d5a262592c Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Wed, 29 Jun 2016 22:58:51 -0400 Subject: Defer busname ownership until init complete Avoid race conditions where applications expecting an object to be present upon recipt of NameOwnerChanged find that the object hasn't been created yet. Change-Id: I4236a3898055a84b00e1eaf37f32e0192b683a0f Signed-off-by: Brad Bishop --- pyipmitest/ipmi_debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyipmitest/ipmi_debug.py') diff --git a/pyipmitest/ipmi_debug.py b/pyipmitest/ipmi_debug.py index 0fc6a86..3e0ea18 100644 --- a/pyipmitest/ipmi_debug.py +++ b/pyipmitest/ipmi_debug.py @@ -86,10 +86,10 @@ class ConsoleReader(object): def main(): dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) bus = dbus.SystemBus() - name = dbus.service.BusName(DBUS_NAME, bus) obj = IpmiDebug(bus, OBJ_NAME) mainloop = gobject.MainLoop() r = ConsoleReader(obj) + name = dbus.service.BusName(DBUS_NAME, bus) print ("Enter IPMI packet as hex values. First three bytes will be used" "as netfn and cmd.\nlun will be zero.") -- cgit v1.2.1