DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8659>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8659

httpd fails to start if a (module's) log file isnt touch-ed





------- Additional Comments From [EMAIL PROTECTED]  2002-04-30 14:56 -------
We are in middle of a DNS update. URLs should work now. Sorry about that.
Here is the code:

--- snip ---

void mod_gzip_printf( const char *fmt, ... )
{

 int   l;
 char *p1;
 FILE *log;

 va_list ap;

 char logname[256];
 char log_line[4096];

 #ifdef WIN32
 long pid = GetCurrentProcessId();
 #else
 long pid = (long) getpid();
 #endif
 #ifdef WIN32
 sprintf( logname, "c:\\temp\\t%ld.log",(long)pid);
 #else
 sprintf( logname, "/tmp/t%ld.log",(long)pid);
 #endif

 return;  // line 374

// it fails if it returns before opening the file below


 log = fopen( logname,"a" );

 if ( !log ) 
 {
   return; 
 }
 else
 {
   fclose(log);
   return;
 }


.
.
.
.
--- snip ---

Reply via email to