Re: gnome_show_url() hangs in threaded programs



On 2001.08.23 23:29 Pawel Salek wrote:
> 
> On 2001.08.22 21:52 Pawel Salek wrote:
> > I have impression that something has got broken in gnome_show_url() and
> > related functions (or perhaps, a bug has surfaced that has not been
> > active earlier).
> 
> After closer investigation, I think the problem is in gthread library. I
> attach a test program with does some threading and forking at the same
> time. 
> The program WorksForMe(TM) when compiled as follows:
> # cc atfork-test.c -lthread
> 
> The program hangs when compiled as follows:
> # cc atfork-test.c -lgthread -lglib
> 
> I think it should not happen so (and gnome programs hang because they
> link
> against gthread). Can someone confirm it? Offer a solution?
>
I observed that after exit(0) one of the a.out becomes zombi and
in atfork-test.c I change the exit(0) to _exit(0) and it works smoothly, no
more problem, no more zombie. Don't know if it helps.
Bye
Manu




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