|
From: Alessandro A. <ant...@gm...> - 2012-11-12 11:17:18
|
2012/11/11 John Brown <joh...@ho...> > On Sun, 11 Nov 2012 20:56:44 +0100, Robert Latest wrote: > > > > Hello all, > > > > I'd like to know if it is at all possible to write UNIX-like daemons > > in a MinGW (non-MSYS) environment. > <snip/> > > Thanks, > > robert > > > > Hello Robert, > > Have you considered writing a Windows Service? See: > http://msdn.microsoft.com/en-us/library/ms685141(v=vs.85).aspx > > Regards, > John Brown. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list > etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe > Hi, Robert. John is right. There is no such a thing as daemons on Windows. The only way to go is Windows Services. It's painful to implement but works. "fork()" doesn't work outside of Cygwin/Msys environment. The address http://msdn.microsoft.com/en-us/library/ms685141(v=vs.85).aspx That John gave to you is a good start. There is another one http://www.codeproject.com/Articles/16488/A-Windows-Service-Application Tha has some example that you can take as a starting point. Regards, Alessandro |