On Fri, 2008-10-03 at 16:56 -0700, Sixes wrote: > If I use Mono.Posix.Syscall.fork(), I get a message: > > Warning 'Mono.Posix.Syscall' is obsolete: 'Use Mono.Unix.Native.Syscall.' > > However, Mono.Posix.Syscall doesn't seem to have a fork() method. Am I > missing something? Or is this an oversight? > > I'm trying to implement Cpan's Proc::Daemon::Init code to create a daemon in > mono and C#. I can't find any other way to fork.
A daemon in .NET is a service. You can create your own service by deriving from System.ServiceProcess.ServiceBase and then use mono-service (http://go-mono.com/docs/index.aspx?link=man% 3Amono-service(1)). -Gonzalo _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
