[965] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: "Common problems" part of FAQ?

daemon@ATHENA.MIT.EDU (Michael K. Johnson)
Tue Sep 16 09:49:52 1997

To: gtk-list@redhat.com
From: "Michael K. Johnson" <johnsonm@redhat.com>
In-reply-to: Your message of "Tue, 16 Sep 1997 08:48:05 +0200."
             <Pine.LNX.3.96.970916084459.25096i-100000@pc0176sd.sysdata.siemens.at> 
Date: Tue, 16 Sep 1997 09:46:49 -0400
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Szekeres Istvan writes:
>The exit() vs _exit() problem is described in the Unix Programming FAQ.

Oh, I know.  That's why I blushed when I realized what was happening;
I ought to know better.  I *do* know better if I think about it.  It
was a cut-n-paste error on my part.

It is certainly a generic Unix programming thing -- it is just one of
those things that there's additional semantics that could be mentioned
in a Gtk context.  In particular, if you get a SIGPIPE on a call to
gtk_show_widget() on a toplevel of some sort, you probably called
exit() instead of _exit().

How can I say this: starting from the answer, the question-answer link
is painfully obvious.  But if someone is asking the question at all,
the link isn't obvious.  What I'm suggesting is those links.  So from
a coding what-ought-I-to-do basis, the Unix FAQ is quite correct.  But
from a debugging I-already-screwed-up point of view, the Unix FAQ on
this point is worthless -- if I knew to read that answer, I wouldn't
need to be reading it.

Arbitrary Unix programs with this bug will see it in different ways,
too.  Scrambled data files, arbitrary segfaults in C++ code, random
other bugs caused by atexit() stuff.  But gtk programs, like all X
programs, are likely to see it in the particular way I mention above.
And so, since gtk is some people's introduction to X programming, I'm
suggesting that this particular manifestation of this general bug be
mentioned.

In any case, it's now mentioned in the list archives, so anyone
searching the archives for a mention of it will find it.  ;-)

michaelkjohnson

"Magazines all too frequently lead to books and should be regarded by the
 prudent as the heavy petting of literature."            -- Fran Lebowitz


--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post