[963] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: "Common problems" part of FAQ?
daemon@ATHENA.MIT.EDU (Szekeres Istvan)
Tue Sep 16 02:46:18 1997
Date: Tue, 16 Sep 1997 08:48:05 +0200 (CEST)
From: Szekeres Istvan <szekeres@pc0176sd.sysdata.siemens.at>
To: gtk-list@redhat.com
In-Reply-To: <199709160024.UAA10939@tristan.redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
On Mon, 15 Sep 1997, Michael K. Johnson wrote:
>
> I have had an "uncommon common problem" recently. That is, I haven't seen
> it discussed here, but I know I've seen it discussed as a general X
> programming issue repeatedly. I was (effectively, when you strip out some
> exec failures :-) doing this:
> if (fork())
> exit(1);
> Well, that exit(1) synced my X protocol stream, which then got the X
> libraries awful confused, and then (much later) I got a SIGPIPE. Doh.
> I should have known better.
>
> It has occurred to me that people with much less X programming experience
> than I (and I haven't that much myself) are using Gtk, so the answer --
> use _exit() instead of exit() -- might not be obvious to all users. (In
> fact, it took me embarrassingly long to find it. :-) So I looked to see
> if it was in the FAQ, and I didn't even see a place for it. Should there
> be a "Common problems" part of the FAQ? I can imagine that "why don't my
> labels get clipped" would go there, too...
The exit() vs _exit() problem is described in the Unix Programming FAQ.
Maybe it should be added to the resources page. It can be found on
http://www.erlenstar.demon.co.uk/unix/faq_toc.html or
http://www.whitefang.com/unix/faq_toc.html
Pista
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null