Re: X-connection after a fork



I don't know but I find pipes to work really better than fork (yes I know pipe
makes a fork()) but I had a similar problem and launching the fork with a pipe
and closing it immediately solved it.

Try it. Might be worth the shot..

Maher

On Mon, 2 Oct 2000 16:02:20 -0700 (PDT), Conrad Steenberg said:

> Hi
>  
>  I have a GTK app that wants to fork off a child process, which is also a
>  GTK app. Of course the child process uses the parent's connection to the X
>  server, and makes everything blow up because X doesn't like that :-)
>  
>  Calling gtk_main_quit() in the child process, and then gtk_init again
>  doesn't do the trick. Can anyone enlighten me on how to get a separate
>  connection to X for the child process? (Forking before the first gtk_init
>  is unfortunately not an option :-(
>  
>  TIA
>  
>  Conrad
>  
>  
>  
>  _______________________________________________
>  gtk-list mailing list
>  gtk-list gnome org
>  http://mail.gnome.org/mailman/listinfo/gtk-list
>  
>  

-- 
muhri muhri net -- http://www.muhri.net





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