mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-13 08:30:30 +01:00
team: ignore bus name appearance if we can't determine process id
If the GetConnectionUnixProcessID() call fails, the process that
registered on the bus has died and we should ignore the name
appearance event.
(cherry picked from commit e94d76382c)
This commit is contained in:
parent
dbd7083881
commit
77635adb50
1 changed files with 8 additions and 5 deletions
|
|
@ -380,11 +380,14 @@ teamd_dbus_appeared (GDBusConnection *connection,
|
|||
if (pid != priv->teamd_pid)
|
||||
teamd_cleanup (self, FALSE);
|
||||
} else {
|
||||
_LOGW (LOGD_TEAM, "failed to determine D-Bus name owner");
|
||||
/* If we can't determine the bus name owner, don't kill our
|
||||
* teamd instance. Hopefully another existing teamd just died and
|
||||
* our instance will be able to grab the bus name.
|
||||
*/
|
||||
/* The process that registered on the bus died. If it's
|
||||
* the teamd instance we just started, ignore the event
|
||||
* as we already detect the failure through the process
|
||||
* watch. If it's a previous instance that got killed,
|
||||
* also ignore that as our new instance will register
|
||||
* again. */
|
||||
_LOGD (LOGD_TEAM, "failed to determine D-Bus name owner, ignoring");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue