gtk in fork()ed process



Hi.

I am forking a gtk-program to start an external program.
When the program start fails I want to display an error message
with gtk. The display routine shall be run in the child process
(I do not want to do any inter process comunication between
child and parent process to let the parent process display the
error message).

There happen very strange things when the child tries to
use gtk functions. I think gtk has to be re-initialized.
Is there a way to re-initialize gtk in the forked process?
Or what else do I have to do to use gtk in the child process?

Bye
Oliver



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