> it replaces apr_proc_detach with an inline implementation of it on plain > POSIX and that should be most likely as portable (at least for the platforms > we care of) and doesn't intentionally include any error checking to make it > How about Cygwin and mingw? I'm not sure if the use of pipe(), fork(), etc is possible there
I think we need to take a broader decision about the way we support the Windows platform anyway, we may not need to support detach on that platform. With Cygwin or with mingw, we should be able to include native code for running as a service. So my proposal would be that we extend Carlo's concept so that there are two variations of it, using #ifdef : - a UNIX variation of gmond that has detach functionality implemented with fork, pipe, etc - a Windows variation of gmond that has built in support for running as a service The cygrunsrv source code here provides us with an example of how to go about it: http://sourceware.org/cgi-bin/cvsweb.cgi/cygrunsrv/?cvsroot=cygwin-apps#dirlist What do people think about having this type of native code in gmond rather than just using apr? Or should we try to patch apr to provide the functionality? ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers