[Mono-dev] System.Unix.Native.Syscall.fork is commented out
jonpryor at vt.edu
Wed Nov 5 18:20:00 EST 2008
On Wed, 2008-11-05 at 22:13 +0000, James Mansion wrote:
> 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?
Yes, though this would be outside of Mono.Posix's scope and thus would
require that you write & maintain a C "bootstrap" program...
Not difficult, but not entirely in C# either.
More information about the Mono-devel-list