Re: gnome_show_url() hangs in threaded programs



On 2001.08.24 15:52:09 +0100 Toralf Lund wrote:

> 2. If I replace fork() etc. with system(<something>), everything appears to
> work as expected, i.e. the atfork functions are called. I find this a bit
> surprising, since I'm assuming system() does little else than fork(), then
> exec..(<shell>, ...)
> 
not quite. system() knows the current working set will be thrown away so it
uses a lighter fork (prolly clone() but i can't be sure). basicly, it just
creates an entry in the process table instead of seting up the COW of the 
parent working set.

-- 
Carlos Morgado - chbm(at)chbm(dot)nu - http://chbm.nu/ -- gpgkey: 0x1FC57F0A
http://wwwkeys.pgp.net/ FP:0A27 35D3 C448 3641 0573 6876 2A37 4BB2 1FC5 7F0A
Software is like sex; it's better when it's free. - Linus Torvalds




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