Re: Spawn a process without exec



sounds like you want to start a child thread:

  http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html

there are some 'gotchas' if you have several threads all calling the
same GTK. It's usually best (IMO) to have all of the GTK calls in one
thread and to use something like an asyncqueue for workers to tell the
GUI thread what to do.

John

On Thu, 19 Aug 2004 22:32:15 +0000, David Rosal <davidrr menta net> wrote:
Please, could anybody tell me how to create a non-exec process within a
GTK application?
I can't use fork() because the child has to use GTK, and the g_spawn...
stuff is only used to spawn processes that run a different program with
exec.



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