GDBusConnection: delegate to the worker to close the stream
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 13 Sep 2011 16:31:27 +0000 (17:31 +0100)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 16 Sep 2011 16:00:22 +0000 (12:00 -0400)
commit8097e2de85e03667c2b8646326c007b213b55870
tree90a67f2aa9ed9302a6ba7171675506fb291af5a4
parenta8f75f21b4b2264b385022496c597573ecb709da
GDBusConnection: delegate to the worker to close the stream

We can't safely close the output part of the I/O stream until any
pending write or flush has been completed. In the worst case, this could
lead to an assertion failure in the worker (when the close wins the
race) or not closing the stream at all (when the write wins the race).

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusconnection.c
gio/gdbusprivate.c
gio/gdbusprivate.h