NetworkManager/src/devices/team
Dan Winship f0e74622cc team: fix teamd startup code (rh #1184923)
Since 03a5a85d, NMDeviceTeam was trying to use priv->teamd_pid to
decide whether a teamd_dbus_vanished() call indicated "teamd hasn't
been started yet" or "teamd was previously started and has now
exited". But this resulted in a race condition, where at startup, a
device could call g_dbus_watch_name(), then launch teamd (causing
teamd_pid to get set), and then have gdbus report that teamd hasn't
been started yet before the newly-launched teamd managed to grab the
bus name. Since teamd_pid would already be set when
teamd_dbus_vanished() was called, it would decide that this meant
"teamd was previously started and has now exited", so it would call
teamd_cleanup(), killing the just-started teamd process.

Fix this by having teamd_dbus_vanished() check priv->tdc instead,
which doesn't get set until after the first teamd_dbus_appeared()
call.
2015-01-23 10:05:20 -05:00
..
exports.ver core: move device factory type function into factory object 2014-09-11 12:47:23 -05:00
Makefile.am libnm: add NetworkManager.h, disallow including individual headers 2014-08-01 14:34:40 -04:00
nm-device-team.c team: fix teamd startup code (rh #1184923) 2015-01-23 10:05:20 -05:00
nm-device-team.h devices: drop device-type-specific error domains 2014-10-22 08:29:08 -04:00
nm-team-factory.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-team-factory.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00