gdk_fork() or the like ?
- From: Ian Main <slow intergate bc ca>
- To: gtk-list redhat com
- Subject: gdk_fork() or the like ?
- Date: Mon, 7 Jul 1997 22:02:52 -0700 (PDT)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]