summaryrefslogtreecommitdiff
path: root/src/nm-dbus-object.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-04-21 13:25:57 +0200
committerThomas Haller <thaller@redhat.com>2018-04-22 10:19:35 +0200
commit3cedc1bf533081809c9ec60e064ee3b497578b13 (patch)
tree002f287529a738c6743a3721af2d732c928fccbc /src/nm-dbus-object.h
parent0a24b6ce90d86eaf9a91c63b1982171b9f038b5b (diff)
downloadNetworkManager-th/core-fixes-for-shutdown.tar.gz
core/dbus: stop NMDBusManager and reject future method callsth/core-fixes-for-shutdown
During shutdown, we will need to still iterate the main loop to do a coordinated shutdown. Currently we do not, and we just exit, leaving a lot of objects hanging. If we are going to fix that, we need during shutdown tell NMDBusManager to reject all future operations. Note that property getters and "GetManagerObjects" call is not blocked. It continues to work. Certainly for some operations, we want to allow them to be called even during shutdown. However, these have to opt-in. This also fixes an uglyness, where nm_dbus_manager_start() would get the set-property-handler and the @manager as user-data. However, NMDBusManager will always outlife NMManager, hence, after NMManager is destroyed, the user-data would be a dangling pointer. Currently that is not an issue, because - we always leak NMManager - we don't run the mainloop during shutdown
Diffstat (limited to 'src/nm-dbus-object.h')
-rw-r--r--src/nm-dbus-object.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nm-dbus-object.h b/src/nm-dbus-object.h
index 43613630bb..8b3ffdbded 100644
--- a/src/nm-dbus-object.h
+++ b/src/nm-dbus-object.h
@@ -28,10 +28,6 @@
/*****************************************************************************/
-void nm_dbus_object_set_quitting (void);
-
-/*****************************************************************************/
-
typedef struct {
const char *path;