Re: fork in callbacks





> Can I fork() inside a (GNOME) widget callback?, for example:
> 
>     void checkout_dialog_cb (GtkWidget *w, gint button_number, gpointer
> data)

Yes, you can fork anywhere you want.

Now, the only issue you have is that you need to be careful with the
way the file descritpros are shared.  

For example, the child process can not use GTK+ right away.  It needs
to shutdown the current GTK+ (I do not know if this is even possible)
and then re-init GTK+.

Miguel.



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