httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1076718 - /httpd/httpd/trunk/server/mpm/event/event.c
Date Thu, 03 Mar 2011 18:37:41 GMT
Author: trawick
Date: Thu Mar  3 18:37:41 2011
New Revision: 1076718

URL: http://svn.apache.org/viewvc?rev=1076718&view=rev
Log:
event: child_main() never returns, so remove some dead code after
one of the calls

Modified:
    httpd/httpd/trunk/server/mpm/event/event.c

Modified: httpd/httpd/trunk/server/mpm/event/event.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1076718&r1=1076717&r2=1076718&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/event/event.c (original)
+++ httpd/httpd/trunk/server/mpm/event/event.c Thu Mar  3 18:37:41 2011
@@ -1835,6 +1835,7 @@ static int make_child(server_rec * s, in
         set_signals();
         ap_scoreboard_image->parent[slot].pid = getpid();
         child_main(slot);
+        /* NOTREACHED */
     }
 
     if ((pid = fork()) == -1) {
@@ -1872,8 +1873,7 @@ static int make_child(server_rec * s, in
 
         apr_signal(SIGTERM, just_die);
         child_main(slot);
-
-        clean_child_exit(0);
+        /* NOTREACHED */
     }
     /* else */
     if (ap_scoreboard_image->parent[slot].pid != 0) {



Mime
View raw message