summaryrefslogtreecommitdiff
path: root/solenv/flatpak-manifest.in
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-06 09:01:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-06 09:18:50 +0100
commit5598e4bd2f73dfbcb2dcff2243774aefa0690e48 (patch)
tree9be46dba76aac341768c645ac0afc2e410fb8550 /solenv/flatpak-manifest.in
parentb28359c4cbf486b8c82e576b9894f3ea7840d7e9 (diff)
Finally make DbusIpcThread terminate
...by directly calling shutdown(3) on the underlying socket, to make dbus_connection_read_write fall out of its internal poll(3) call blocked on POLLIN (upon which it returns false). (dbus_connection_close only calls close(3), so calling it from DbusIpcThread::close would merely decrement the socket file descriptor's reference count.) This removes the need for the sent- to-self "Close" command (whose processing turned out to be too brittle in parallel with closing the connection down, witness my previous three fruitless commits in this area). There appears to be no need to explicitly call dbus_bus_release_name, as the session bus apparently takes care of releasing the name as soon as the associated connection is closed. Also there should be no need to call dbus_connection_read_write_dispatch instead of just dbus_connection_read_write, and dbus_message_pop_message should probably be called in a loop, until all queued messages are processed. Change-Id: I13f30b6676a531f349e953329e910c1ff45ee53e
Diffstat (limited to 'solenv/flatpak-manifest.in')
0 files changed, 0 insertions, 0 deletions