httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@hyperreal.org
Subject cvs commit: apache-1.3/src/modules/standard mod_cgi.c
Date Wed, 30 Jun 1999 04:36:56 GMT
stoddard    99/06/29 21:36:56

  Modified:    src/modules/standard mod_cgi.c
  Log:
  Win32: On CGI script failure, direct the CGI's stderr to the error log.
  
  Revision  Changes    Path
  1.92      +11 -0     apache-1.3/src/modules/standard/mod_cgi.c
  
  Index: mod_cgi.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_cgi.c,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- mod_cgi.c	1999/04/27 20:36:35	1.91
  +++ mod_cgi.c	1999/06/30 04:36:55	1.92
  @@ -210,8 +210,19 @@
   	/* Soak up script output */
   	while (ap_bgets(argsbuffer, HUGE_STRING_LEN, script_in) > 0)
   	    continue;
  +#ifdef WIN32
  +        /* Soak up stderr and redirect it to the error log.
  +         * Script output to stderr is already directed to the error log
  +         * on Unix, thanks to the magic of fork().
  +         */
  +        while (ap_bgets(argsbuffer, HUGE_STRING_LEN, script_err) > 0) {
  +            ap_log_rerror(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, r, 
  +                          "%s", argsbuffer);            
  +        }
  +#else
   	while (ap_bgets(argsbuffer, HUGE_STRING_LEN, script_err) > 0)
   	    continue;
  +#endif
   	return ret;
       }
   
  
  
  

Mime
View raw message