Re: Flushing D-Bus messages

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <16318900.5zBbZf6Yt2@tjmaciei-mobl1>
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

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.