gmain.c wake_up_pipe construction ...
- From: Michael Meeks <michael ximian com>
- To: Gtk Hackers <gtk-devel-list gnome org>
- Cc: vfs <gnome-vfs ximian com>, Sebastian Wilhelmi <wilhelmi ira uka de>
- Subject: gmain.c wake_up_pipe construction ...
- Date: 12 Jul 2002 12:00:52 +0100
Hi there,
I just hit an interesting one - where gnome-vfs was not initialising
threads before creating the default GContext, indeed it was doing it
afterwards.
The effect of this was rather amusing, inasmuch that the wake_up_pipe
was initialised to 0 ( at both ends ), the result of this was that to do
any async operations, I'd see an 'A' on the console, and I'd have to hit
<enter> to get anywhere further ;-)
Easily fixed in gnome-vfs, but I'm wondering if other people will trip
up on that, and whether it's worth having an assertion of some form,
somewhere to ensure that it has been correctly initialised. One easy one
would be to check that both pipe fd's are not 0 perhaps.
HTH,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]