Tuesday, December 2, 2008

GTK Error When forking

When you get an error such as a "Fatal IO error" when using GTK and forking a child process. you have just ran into a bug with GTK. GTK doesn't like the way the child exits when it is being forked.

To resolve this, make sure that we exit the child using: _exit (-1), instead of the normal exit function.

No comments: