dbus_shutdown call

Ge@@ru geaaru at gmail.com
Tue Jan 8 05:55:48 PST 2008


On dbus session (share connection) works fine. Only on system session i
have this problem.

So, why i can't close this shared connection?

Thanks

Ge@@ru

On Tue, 2008-01-08 at 16:01 +0200, Naveen Verma wrote:
> Hi,
> 
> Probably you are taking a shared connection which you can't close,
> thats why this error is coming. What if you could try to take a
> private connection (dbus_bus_get_private()), and
> close(dbus_connection_close()) and
> unreferenced(dbus_connection_unref()) after use and then call
> dbus_shutdown()? 
> 
> -Br
> Naveen 
> 
> On Jan 8, 2008 2:51 PM, Ge@@ru <geaaru at gmail.com> wrote:
>         Hi at all,
>          i want use dbus_shutdown function for deallocate internal
>         dbus variable
>         before exit from my application and avoid valgrind warning.
>         On bus session this works fine but on system bus i have this
>         abort:
>         process 26586: dbus_shutdown() called but connections were
>         still live.
>         This probably means the application did not drop all its
>         references to
>         bus connections
>         
>         Why? Have you an idea how can i resolve this problem? 
>         
>         Thanks in advance.
>         
>         Ge@@ru
>         
>         _______________________________________________
>         dbus mailing list
>         dbus at lists.freedesktop.org
>         http://lists.freedesktop.org/mailman/listinfo/dbus
> 



More information about the dbus mailing list