From 00636b55c90669739746965696e46be56bb05e46 Mon Sep 17 00:00:00 2001 From: Greg Ames Date: Sun, 10 Feb 2002 14:21:44 +0000 Subject: [PATCH] prefork shouldn't be killing its parent if a child runs out of resources. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93356 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ server/mpm/prefork/prefork.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 81c3076076..72a5ccc776 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,7 @@ Changes with Apache 2.0.32-dev + + *) Fix prefork to not kill the parent if a child hits a resource shortage + on accept(). [Greg Ames] *) Fix seg faults that occur when what should be the httpd request line starts with \r\n followed by garbage. [Greg Ames] diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 3cecebe224..a0cf5b9238 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -701,9 +701,9 @@ static void child_main(int child_num_arg) break; } if (status == APR_EGENERAL) { - clean_child_exit(APEXIT_CHILDFATAL); + /* resource shortage or should-not-occur occured */ + clean_child_exit(1); } - ap_sync_scoreboard_image(); } SAFE_ACCEPT(accept_mutex_off()); /* unlock after "accept" */ -- 2.40.0