[Mono-dev] System.Unix.Native.Syscall.fork is commented out

James Mansion james at mansionfamily.plus.com
Wed Nov 5 17:13:11 EST 2008


Jonathan Pryor wrote:
> That still wouldn't work, as *before* Main() is invoked there are
> already multiple threads running.  You might not have the unknown lock
> state issue, but you will have the runtime assuming that threads exist
> which won't exist in the child process.  Oops.
>
>   
Isn't this an opportunity for 'embedding mono' with an explicit dynamic 
load of the mono
runtime, so the main that runs is a C program that detaches first and 
sorts itself out and then
loads up and initialises the mono runtime?

James



More information about the Mono-devel-list mailing list