Re: [gtk-list] Re: Re



On Mon, Sep 27, 1999 at 09:14:40AM +0200, Erik Mouw wrote:
> On Sat, 25 Sep 1999 16:23:55 -0700, Theodore Roth wrote:

> That's no problem. If the socket to the X server is marked close-on-exec,
> it will automatically be closed at exec(). Otherwise, the exec()-ed
> program will have an extra open file descriptor (without knowing it) which
> will be closes as soon as it exits. Nothing will go wrong, because the
> original GTK cleanup routines will not be called.

One may also explicitly close the descriptor before the exec() like so:

#include<Xlib.h>
#include<gdk/gdkx.h>

close( ConnectionNumber( gdk_display ));

--
James Bailie

"The fact is, your brain is built to do Perl programming." 
   --Larry Wall in Open Sources.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]