|
There are two things to remember:
-
The child process must not try to use the GUI;
since it shares file descriptors with the parent,
including GTK+'s connection to the X server, GTK+
will become very confused.
-
The child process must be terminated with _exit() rather than exit(); calling exit() will shut down GTK+ and
confuse the parent process. (GTK+ registers a
"cleanup" function using
atexit().)
|
|