Dbus: flash connection?

When I do "dbus_connection_close" do I need to drop the message queue?

In other words, do I need to continue "dbus_connection_read_write_dispatch" until I get a "disabled" indication or is it safe to stop sending?

Updated: I need to close the connection to DBus in a clean way. From reading the documentation, all cleaning should be done before the connection is “not intercepted,” and this process is not well documented by IMO.

+3
source share
2 answers

After some additional digging, there seem to be two types of connection: public and private.

. , , , .

DBus, .

, : - / dbus_connection_unref.

+2

dbus_connection_close(), , , , , .

, - , , , . / , .

, , , , , , .. / NULL. () .

, , , , , .

. dbus, .

0

Source: https://habr.com/ru/post/1721652/


All Articles