Re: fork in callbacks
- From: Miguel de Icaza <miguel nuclecu unam mx>
- To: gtk-app-devel-list redhat com
- CC: gnome-list gnome org
- Subject: Re: fork in callbacks
- Date: Thu, 3 Dec 1998 16:21:20 -0600
> 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]