]> granicus.if.org Git - apache/commitdiff
Failure to fork cgid is a shooting offense.
authorBill Stoddard <stoddard@apache.org>
Mon, 22 Apr 2002 01:36:49 +0000 (01:36 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 22 Apr 2002 01:36:49 +0000 (01:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94743 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgid.c

index 7cc2aba4faf9c182d86f48566019576939f47bb5..c20e78409134b370fa7a522dca66a61de00d63dd 100644 (file)
@@ -676,8 +676,8 @@ static int cgid_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,
         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);