That is wierd.  When you import GTK, it creates a connection to the X
server.  I guess when the fork occurs, both programs have fd's for the
same connection to the X server.

Do you get the same error if you perform the fork before importing gtk?

James Henstridge.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Sun, 29 Nov 1998, Martin Preishuber wrote:

> Hi all,
> 
> Can anyone run this little program:
> 
> #!/usr/local/bin/python
> import gtk
> import os
> import sys
> if os.fork():
>         print "hello"
>         sys.exit()
> else:
>         print "main"
> 
> and tell me what's wrong with that ? when I start it I get something
> like:
> 
> hello
> main
> [preisl@bofh ~/Software/ERoaster]$ 
> Gdk-ERROR **: BadGC (invalid GC parameter)
>   serial 33 error_code 13 request_code 60 minor_code 0
> 
> aborting...
> 
> Thanks,
> 
> Martin
> 
> -- 
> Martin Preishuber - Student, ECLiPt Member, SysAdmin
> http://eclipt.uni-klu.ac.at,
> mailto:[EMAIL PROTECTED]
> 
> I always say beauty is only sin deep.
> -- Saki, "Reginald's Choir Treat"
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to