mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 06:30:08 +01:00
callouts: don't queue the DHCP callout's bus name request (bgo #680041)
If queueing the name isn't allowed, and two instances that start in close succession, one instance will fail because it can't claim the bus name.
This commit is contained in:
parent
757a34fcdd
commit
a03e7fb74f
1 changed files with 1 additions and 4 deletions
|
|
@ -251,10 +251,7 @@ dbus_init (void)
|
|||
dbus_connection_set_exit_on_disconnect (connection, FALSE);
|
||||
|
||||
dbus_error_init (&error);
|
||||
ret = dbus_bus_request_name (connection,
|
||||
NM_DHCP_CLIENT_DBUS_SERVICE,
|
||||
DBUS_NAME_FLAG_DO_NOT_QUEUE,
|
||||
&error);
|
||||
ret = dbus_bus_request_name (connection, NM_DHCP_CLIENT_DBUS_SERVICE, 0, &error);
|
||||
if (dbus_error_is_set (&error)) {
|
||||
fprintf (stderr, "Error: Could not acquire the NM DHCP client service. "
|
||||
"Message: (%s) %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue