Pål Kristensen wrote:

The strange thing is that if I stop the apache service, then suddenly the
fastCGI mapserv.exe writes a lot to the logfile before it close down.

Is there a way to get mapserv.exe to write to the log file when initiated in
fastCGI mode?



Maybe a fflush() on the msDebug() output at the end of each FastCGI request would help? For a test, please try adding one in the msDebug() function in mapdebug.c and see if that helps:

--- mapdebug.c  (revision 7902)
+++ mapdebug.c  (working copy)
@@ -361,6 +361,7 @@
         va_start(args, pszFormat);
         msIO_vfprintf(debuginfo->fp, pszFormat, args);
         va_end(args);
+        fflush(debuginfo->fp);
     }
 #ifdef _WIN32
     else if (debuginfo->debug_mode == MS_DEBUGMODE_WINDOWSDEBUG)


If that helps then please file a ticket and assign to me (Trac id dmorissette). The final solution will NOT be to call fflush() all the time as in the above gtest, but to create a new msDebugFlush() function that is called once at the end of each FastCGI request

Daniel
--
Daniel Morissette
http://www.mapgears.com/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to