diff options
author | Jeff Trawick <trawick@apache.org> | 2001-10-16 20:45:16 +0200 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-10-16 20:45:16 +0200 |
commit | b9c5fa38be1a0db9f5e068617b05ab101de1c2de (patch) | |
tree | 9575bcafdee3c766ec2393d0b3c8a2badd4d3d8e /server/listen.c | |
parent | In one target we weren't always creating the $libexecdir (diff) | |
download | apache2-b9c5fa38be1a0db9f5e068617b05ab101de1c2de.tar.xz apache2-b9c5fa38be1a0db9f5e068617b05ab101de1c2de.zip |
Exit when we can't listen on any of the configured ports. This
is the same behavior as 1.3, and it avoids having the MPMs to
deal with bogus ap_listen_rec structures.
This also backs out some circumventions I and Greg Ames had added
to prefork; these are no longer necessary because of this change.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/listen.c')
-rw-r--r-- | server/listen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/listen.c b/server/listen.c index 8068dce659..6a6e919a7f 100644 --- a/server/listen.c +++ b/server/listen.c @@ -287,6 +287,10 @@ int ap_listen_open(process_rec *process, apr_port_t port) ++num_open; lr->active = 1; } + else { + /* fatal error */ + return -1; + } } } |