GNOME Bugzilla – Bug 626841
Add test-case for non-socket GIOStream
Last modified: 2010-08-13 18:08:07 UTC
Would probably be fine to just use a GIOStream from FDs returned by pipe(2). Pointed out on gtk-devel-list: On Fri, Aug 13, 2010 at 8:18 AM, Michael Meeks <michael.meeks@novell.com> wrote: > Good morning :-) > > Looking forward to your arrival; thanks for writing the test case - > rather useful :-) > > Digging into the code some more, I'm a tad confused about the > write_message code; looks like it should crash to me with a GIOStream > that is not a GSocketConnection - ie. worker->socket will be NULL, and > we crash in write_message. I assume gdbusprivate.c:~832 should be: > > if (worker->socket != NULL) ?
Fixed with this commit http://git.gnome.org/browse/glib/commit/?id=d344ff9d67a7e723a1c2163e7d9254dd6ef049d2