[445] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] gdk_fork() or the like ?

daemon@ATHENA.MIT.EDU (Ian Main)
Tue Jul 8 01:01:54 1997

Date: Mon, 7 Jul 1997 22:02:52 -0700 (PDT)
From: Ian Main <slow@intergate.bc.ca>
Reply-To: Ian Main <slow@intergate.bc.ca>
To: gtk-list@redhat.com
In-Reply-To: <Pine.SOL.3.91.970707150136.6504A-100000@travelers.mail.cornell.edu>
Resent-From: gtk-list@redhat.com


Hello all,

When helping with gzilla, we ran into a problem with forking in gtk apps..
the connection to the X server is kept in the forked child.  I tried
closing all file descriptors in the child, but on exit, you recieve an
"xio error".

I'm just wandering what y'all think of a gtk/gdk (I figured gdk cause it's
not really a widget thing..) fork call that will create a child that has
no affiliation with X for doing multi-threaded programming.

I dug through the pthread docs but couldn't find any way to set a thread
to not inherent file descriptors.  I know with the clone() call you can do
this, but a lot of pthread implementations are built over fork so..

Anyway, let me know what you think.


Ian




--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post