Daniel,

Great - the fflush worked. The OS is Debian Etch 64. I am using php/mapscript.

Perhaps you recall that I had a similar problem with the same server with PHP/mapscript and calling flush caused a segmentation fault to show in the apache error logs. Perhaps there is something similar I could experiment with that would flush mapscript output?

Jim

jim white wrote:

> I can use a file instead of stderr and have the same problem - restart > apache to see the logs. >

Um... the only reason I can think of for this to happen would be if your mapserv processes hang and never close/flush the log output. Actually, are you using the mapserv CGI or MapScript? On which OS is this happening?

If you built from source, you could possibly work around the problem by adding a fflush() call in msDebug() after the msIO_vfprintf() line. That could keep you going but would not solve the key issue which seems to be that your processes possibly hang or something like that. We'd need more info to help with that.



Index: mapdebug.c
===================================================================
--- mapdebug.c  (revision 9170)
+++ mapdebug.c  (working copy)
@@ -360,6 +360,7 @@

         va_start(args, pszFormat);
         msIO_vfprintf(debuginfo->fp, pszFormat, args);
+        fflush(debuginfo->fp);
         va_end(args);
     }
 #ifdef _WIN32



--
James (Jim) B. White
tel: (919)-380-9615
homepage: http://jimserver.net/
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to