You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@apache.org on 2002/04/22 03:36:49 UTC

cvs commit: httpd-2.0/modules/generators mod_cgid.c

stoddard    02/04/21 18:36:49

  Modified:    modules/generators mod_cgid.c
  Log:
  Failure to fork cgid is a shooting offense.
  
  Revision  Changes    Path
  1.127     +2 -2      httpd-2.0/modules/generators/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
  retrieving revision 1.126
  retrieving revision 1.127
  diff -u -r1.126 -r1.127
  --- mod_cgid.c	4 Apr 2002 09:15:43 -0000	1.126
  +++ mod_cgid.c	22 Apr 2002 01:36:49 -0000	1.127
  @@ -676,8 +676,8 @@
           daemon_should_exit = 0; /* clear setting from previous generation */
           if ((daemon_pid = fork()) < 0) {
               ap_log_error(APLOG_MARK, APLOG_ERR, errno, main_server, 
  -                         "Couldn't spawn cgid daemon process"); 
  -            /* XXX should we return a failure here ? */
  +                         "mod_cgid: Couldn't spawn cgid daemon process"); 
  +            return DECLINED;
           }
           else if (daemon_pid == 0) {
               apr_pool_create(&pcgi, p);