Re: [gtk-list] Re: Force refresh/exposure



>>>>> "Havoc" == Havoc Pennington <hp@redhat.com> writes:

Havoc> You have to do something wacky like fork() twice; look at
Havoc> gnome_execute_async_with_env_fds() in libgnome/gnome-exec.c for
Havoc> an example.

I haven't been following this thread.  However, I (originally; it has
been rewritten a couple times since) wrote this code in gnome-exec.c.
We fork() twice to avoid having to deal with child death at some
random point in the program's execution.  This way we can wait for the
intermediate child right away and keep things tidy without having to
worry about signals (which, as a library, we don't want to mess with)
and the like.

wait and sigchld are one of the ugly warts on Unix, IMNSHO.

Tom



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