Re: Threaded Gtk2->main causing seg fault



Dan Lyke wrote:
You want fork(), not pthread_create() (or whatever the Perl equivalent
is).
My plugin makes use of GSignal. If I use fork(), I can't avoid but 
convert the signal to text message before piping the child. The other 
issue is that if the parent's GObject instance changed after fork(), the 
child will know nothing about the changes. There is rfork() in C, which 
has the share memory option, but that is not available in perl. As least 
I can't find any document about it. So threads is the only thing 
available to me with 'share' variable option.
Kevin Leung




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