Re: [G2R] Re: Various releases ...



Hi Alex,

On Thu, 2002-05-09 at 22:42, Alex Larsson wrote:
> bash-2.05$ ls /tmp/orbit-alexl/ | wc -l
>    6461

	I'm guessing that was accumulated before we added the atexit handler -
either way, it would be nice to have a sweeper at login time - which
should be done centrally - not that hard to do, just a bit of a pain.
Could it be plugged into gnome-session ?

	Also - from reading the gtk+ 1.2 FAQ about the 'exit' situation I see:

[snip]
<sect1>Why does this strange 'x io error' occur when I <tt/fork()/ in my
GTK+ app?
<p>
This is not really a GTK+ problem, and the problem is not related to
<tt/fork()/ either. If the 'x io error' occurs then you probably use
the <tt/exit()/ function in order to exit from the child process.

When GDK opens an X display, it creates a socket file descriptor. When
you use the <tt/exit()/ function, you implicitly close all the open
file descriptors, and the underlying X library really doesn't like
this.

The right function to use here is <tt/_exit()/. 
[snip]

	Which (it seems) has nothing to do with atexit handlers, and everything
to do with the closing of file handles. Is the above correct ? if so,
surely people have to use _exit anyway and the objection is somewhat
moot ?


	Regards,

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




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