Flushing D-Bus messages
Thiago Macieira
thiago at kde.org
Wed Jun 7 15:24:58 UTC 2017
On Wednesday, 7 June 2017 06:22:57 PDT Ravi Kumar Kandati wrote:
> A process P1 submitted multiple messages to process P2 D-Bus connection. Due
> to some reason P1 is going to shutdown, is it possible to flush the
> messages submitted to P2 D-Bus connection?
(assuming you're asking about the libdbus-1 API)
You can loop around the dbus_connection_dispatch() and wait until it reports
that there is nothing further to dispatch. You may need to wait for the socket
to become writable too.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
More information about the dbus
mailing list