/[Apache-SVN]/httpd/httpd/branches/2.2.x/server/main.c
ViewVC logotype

Log of /httpd/httpd/branches/2.2.x/server/main.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 695026 - (view) (annotate) - [select for diffs]
Modified Sat Sep 13 20:32:22 2008 UTC (14 months, 1 week ago) by rpluem
File length: 24232 byte(s)
Diff to previous 569941 (colored)
Merge r681204 from trunk:

* Give possible piped loggers a chance to process their input before they get
  killed by us.

Submitted by: rpluem
Reviewed by: rpluem, jim, gregames

Revision 569941 - (view) (annotate) - [select for diffs]
Modified Mon Aug 27 01:05:52 2007 UTC (2 years, 3 months ago) by wrowe
File length: 23827 byte(s)
Diff to previous 569543 (colored)
Thanks to Jeff, identify a wasted byte and ensure this message
is the final word (as in end-of-the-line final word).

Backport: r569934

Revision 569543 - (view) (annotate) - [select for diffs]
Modified Fri Aug 24 22:07:07 2007 UTC (2 years, 3 months ago) by wrowe
File length: 23869 byte(s)
Diff to previous 446606 (colored)
main core: Emit errors during the initial apr_app_initialize()
or apr_pool_create() (when apr-based error reporting is not ready).

Backport: r568779

Revision 446606 - (view) (annotate) - [select for diffs]
Modified Fri Sep 15 13:19:25 2006 UTC (3 years, 2 months ago) by trawick
File length: 23366 byte(s)
Diff to previous 421103 (colored)
merge from trunk (but preserve ap_get_server_version()):

  *) The full server version information is now included in the error log at
     startup as well as server status reports, irrespective of the setting
     of the ServerTokens directive.  ap_get_server_version() is now 
     deprecated, and is replaced by ap_get_server_banner() and 
     ap_get_server_description().

Reviewed by: rpluem, jim


Revision 421103 - (view) (annotate) - [select for diffs]
Modified Wed Jul 12 03:38:44 2006 UTC (3 years, 4 months ago) by fielding
File length: 23358 byte(s)
Diff to previous 396056 (colored)
update license header text

Revision 396056 - (view) (annotate) - [select for diffs]
Modified Sat Apr 22 01:53:06 2006 UTC (3 years, 7 months ago) by pquerna
File length: 23211 byte(s)
Diff to previous 395231 (colored)
Revert r395231 from the 2.2.x branch.  This gets us back to the old place with regard to the copyright statements.

Revision 395231 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:33:16 2006 UTC (3 years, 7 months ago) by colm
File length: 23211 byte(s)
Diff to previous 390597 (colored)
Update the last year of copyright for the 2.2.x branch

Revision 390597 - (view) (annotate) - [select for diffs]
Modified Sat Apr 1 06:22:25 2006 UTC (3 years, 7 months ago) by pquerna
File length: 23211 byte(s)
Diff to previous 332309 (colored)
Merge r390573 from trunk:
  With all of the, uhm, interesting manners in which httpd
  can be built and installed, let's ensure httpd -V gives the
  reporter a chance to identify the APR flavor used to compile
  and to run httpd when reporting bugs.

Revision 332309 - (view) (annotate) - [select for diffs]
Modified Thu Nov 10 15:20:05 2005 UTC (4 years ago) by jim
File length: 22950 byte(s)
Diff to previous 312906 (colored)
No functional change: remove trailing whitespace. This also means
that "blank" lines, which had consisted of just spaces
and/or tabs are now truly blank lines

Revision 312906 - (view) (annotate) - [select for diffs]
Modified Tue Oct 11 16:11:16 2005 UTC (4 years, 1 month ago) by colm
File length: 22976 byte(s)
Diff to previous 292965 (colored)
merge r265737 from trunk.

Author: trawick
Reviewed by: colm

Revision 292965 - (view) (annotate) - [select for diffs]
Modified Sat Oct 1 12:11:45 2005 UTC (4 years, 1 month ago) by jorton
File length: 22902 byte(s)
Diff to previous 292540 (colored)
Merge r264886 from trunk:

* server/main.c (suck_in_APR): Remove weird gzeof reference which
broke all the -Werror builds.

Revision 292540 - (view) (annotate) - [select for diffs]
Modified Thu Sep 29 20:44:53 2005 UTC (4 years, 1 month ago) by colm
File length: 22919 byte(s)
Diff to previous 290189 (colored)
Backport the Doxygen changes to the 2.2.x branch. No functional changes,
however backporting these doxygen fixes makes it significantly easier to diff
trunk and the 2.2.x branch, to sort out what's what. And we might as well
release with nicer doxygen markup.

Submitted by: Neale Ranns <neale ranns.org>
Reviewed by:  Ian Holsman

Revision 290189 - (view) (annotate) - [select for diffs]
Modified Mon Sep 19 15:51:22 2005 UTC (4 years, 2 months ago) by colm
File length: 22902 byte(s)
Diff to previous 234103 (colored)
Backport graceful-stop to the 2.2.x branch.


Revision 234103 - (view) (annotate) - [select for diffs]
Modified Sat Aug 20 18:21:45 2005 UTC (4 years, 3 months ago) by pquerna
File length: 22655 byte(s)
Diff to previous 179879 (colored)
Recreate 2.2.x branch from trunk.

Revision 179879 - (view) (annotate) - [select for diffs]
Modified Fri Jun 3 20:35:27 2005 UTC (4 years, 5 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/main.c
File length: 22655 byte(s)
Diff to previous 151408 (colored)
* server/main.c: Remove the suck_in_apr_password_validate() hack.  apr_password_validate is part of the public APR interface and this hack should not be needed on any platform.

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/main.c
File length: 22952 byte(s)
Diff to previous 106103 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
Original Path: httpd/httpd/trunk/server/main.c
File length: 22916 byte(s)
Diff to previous 104685 (colored)
general property cleanup

Revision 104685 - (view) (annotate) - [select for diffs]
Modified Tue Aug 17 13:47:10 2004 UTC (5 years, 3 months ago) by jorton
Original Path: httpd/httpd/trunk/server/main.c
File length: 22916 byte(s)
Diff to previous 104249 (colored)
Implement -t -DDUMP_MODULES using generic test_config hook rather than
hooking into mod_so from main.c:

* include/http_config.h, server/config.c: Declare test_config hook.

* server/main.c: Drop hooks into mod_so; run test_config hooks.

* modules/mappers/mod_so.h: Drop ap_dump_loaded_modules optional
function.

* modules/mappers/mod_so.c (dump_loaded_modules): Renamed from
ap_dump_loaded_modules; only run if -DDUMP_MODULES is defined.
(register_hooks): Register test_config hook instead of optional
function.

Reviewed by: Justin Erenkrantz, Paul Querna

Revision 104249 - (view) (annotate) - [select for diffs]
Modified Mon Jul 12 16:36:42 2004 UTC (5 years, 4 months ago) by geoff
Original Path: httpd/httpd/trunk/server/main.c
File length: 23186 byte(s)
Diff to previous 104213 (colored)
fix compiler warnings

Revision 104213 - (view) (annotate) - [select for diffs]
Modified Sat Jul 10 03:38:02 2004 UTC (5 years, 4 months ago) by pquerna
Original Path: httpd/httpd/trunk/server/main.c
File length: 23163 byte(s)
Diff to previous 104083 (colored)
Add DUMP_MODULES

Revision 104083 - (view) (annotate) - [select for diffs]
Modified Tue Jun 29 14:08:17 2004 UTC (5 years, 4 months ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 22227 byte(s)
Diff to previous 103976 (colored)
Add OS and APACHE_MPM_DIR to -V output

Revision 103976 - (view) (annotate) - [select for diffs]
Modified Thu Jun 17 15:49:40 2004 UTC (5 years, 5 months ago) by geoff
Original Path: httpd/httpd/trunk/server/main.c
File length: 22085 byte(s)
Diff to previous 103517 (colored)
initialize server arrays prior to calling ap_setup_prelinked_modules
so that static modules can push Defines values when registering
hooks just like DSO modules can
Submitted by:	philippe chiasson
Reviewed by:	geoff

Revision 103517 - (view) (annotate) - [select for diffs]
Modified Sun Apr 25 17:23:31 2004 UTC (5 years, 7 months ago) by nd
Original Path: httpd/httpd/trunk/server/main.c
File length: 22085 byte(s)
Diff to previous 103182 (colored)
changed the following APIs to return an error instead of hard exiting:
ap_add_module, ap_add_loaded_module, ap_setup_prelinked_modules,
and ap_process_resource_config

Revision 103182 - (view) (annotate) - [select for diffs]
Modified Mon Mar 29 02:21:29 2004 UTC (5 years, 7 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 21694 byte(s)
Diff to previous 102619 (colored)
Don't include newlines in strings passed to ap_log_error.

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/main.c
File length: 21698 byte(s)
Diff to previous 102589 (colored)
fix name of The Apache Software Foundation

Revision 102589 - (view) (annotate) - [select for diffs]
Modified Sun Feb 8 13:58:22 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/main.c
File length: 21694 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according to the first check in

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/main.c
File length: 21694 byte(s)
Diff to previous 102188 (colored)
apply Apache License, Version 2.0

Revision 102188 - (view) (annotate) - [select for diffs]
Modified Mon Jan 5 10:37:25 2004 UTC (5 years, 10 months ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 23913 byte(s)
Diff to previous 102187 (colored)
ap_log_error() prints its own newline, so none is needed. Instead, the \\n was escaped and produced an ugly output

Revision 102187 - (view) (annotate) - [select for diffs]
Modified Mon Jan 5 10:34:07 2004 UTC (5 years, 10 months ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 23913 byte(s)
Diff to previous 102135 (colored)
PR:

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
Original Path: httpd/httpd/trunk/server/main.c
File length: 23921 byte(s)
Diff to previous 102012 (colored)
update license to 2004.

Revision 102012 - (view) (annotate) - [select for diffs]
Modified Wed Dec 10 13:43:14 2003 UTC (5 years, 11 months ago) by jorton
Original Path: httpd/httpd/trunk/server/main.c
File length: 23921 byte(s)
Diff to previous 101978 (colored)
* server/main.c (suck_in_expat): Remove function, USE_EXPAT is never
defined.

Revision 101978 - (view) (annotate) - [select for diffs]
Modified Thu Dec 4 03:05:42 2003 UTC (5 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 24206 byte(s)
Diff to previous 101894 (colored)
Clean up httpd -V output: Instead of displaying the MPM source
directory, display the MPM name and some MPM properties.

Submitted by: Geoffrey Young <geoff apache.org>
Reviewed by:  Jeff Trawick

Revision 101894 - (view) (annotate) - [select for diffs]
Modified Wed Nov 26 02:09:25 2003 UTC (6 years ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 23352 byte(s)
Diff to previous 101196 (colored)
tidy up some charset recoding issues

the "need" for APACHE_XLATE went away some years ago when BUFF went
POOF and charset recoding (translation) of non-protocol data
could no longer be performed by the core...

Revision 101196 - (view) (annotate) - [select for diffs]
Modified Mon Sep 8 16:39:04 2003 UTC (6 years, 2 months ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 23414 byte(s)
Diff to previous 101154 (colored)
Documentation says -DDUMP_VHOSTS is equivalent to setting -S

Revision 101154 - (view) (annotate) - [select for diffs]
Modified Wed Sep 3 19:27:12 2003 UTC (6 years, 2 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 23257 byte(s)
Diff to previous 98753 (colored)
switch to APR 1.0 API (which is still in flux)

because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore

Revision 98753 - (view) (annotate) - [select for diffs]
Modified Sat Feb 22 14:32:39 2003 UTC (6 years, 9 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 23260 byte(s)
Diff to previous 98693 (colored)
add a hint about handling of IPv4-mapped IPv6 addresses
to the output of httpd -V

Revision 98693 - (view) (annotate) - [select for diffs]
Modified Mon Feb 17 07:04:50 2003 UTC (6 years, 9 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/main.c
File length: 23145 byte(s)
Diff to previous 98573 (colored)
Allow restart of httpd to occur even with syntax errors in the config
file.  (Out-of-date DSOs with bad MMNs will still be fatal unfortunately.)

Add return parameter to ap_process_config_tree - OK on success, !OK on
syntax error.  We will no longer call exit() from ap_process_config_tree.
The caller must exit if there is an error (makes sense anyway).  This allows
the initial start-up code to delay the exit until trying to let the
signal_server optional function execute first.

(The chances are that the syntax error isn't in the PidFile directive.  If
that happens, we'll try the default one.  Oh, well.)

PR: 16813

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/main.c
File length: 22821 byte(s)
Diff to previous 98535 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 98535 - (view) (annotate) - [select for diffs]
Modified Wed Jan 29 17:09:50 2003 UTC (6 years, 9 months ago) by bnicholes
Original Path: httpd/httpd/trunk/server/main.c
File length: 22821 byte(s)
Diff to previous 97242 (colored)
Enabled the -n parameter on NetWare to allow the administrator to rename
the console screen

Revision 97242 - (view) (annotate) - [select for diffs]
Modified Wed Oct 16 18:03:44 2002 UTC (7 years, 1 month ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 22687 byte(s)
Diff to previous 97120 (colored)
don't use deprecated function apr_sort_hooks()

Revision 97120 - (view) (annotate) - [select for diffs]
Modified Mon Oct 7 01:39:20 2002 UTC (7 years, 1 month ago) by aaron
Original Path: httpd/httpd/trunk/server/main.c
File length: 22681 byte(s)
Diff to previous 96827 (colored)
Add -S as a synonym for -t -DDUMP_VHOSTS

Submitted by:	Thom May <thom@planetarytramp.net>
Reviewed by:	Aaron Bannert

Revision 96827 - (view) (annotate) - [select for diffs]
Modified Sun Sep 15 21:34:08 2002 UTC (7 years, 2 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 22352 byte(s)
Diff to previous 96092 (colored)
  We log this failure (with an identical message) in the restart loop code,
  there's no reason not to note it in the preflight pass.

Revision 96092 - (view) (annotate) - [select for diffs]
Modified Wed Jul 17 07:10:52 2002 UTC (7 years, 4 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 22460 byte(s)
Diff to previous 95871 (colored)
  suck_in wasn't sucking hard enough.  Fixed the header.

Revision 95871 - (view) (annotate) - [select for diffs]
Modified Sun Jun 23 10:27:54 2002 UTC (7 years, 5 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 22439 byte(s)
Diff to previous 95618 (colored)
  Doc it.

Revision 95618 - (view) (annotate) - [select for diffs]
Modified Wed Jun 12 19:34:56 2002 UTC (7 years, 5 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 22300 byte(s)
Diff to previous 95591 (colored)
  -T hasn't been supported for some great while.

Revision 95591 - (view) (annotate) - [select for diffs]
Modified Mon Jun 10 16:43:52 2002 UTC (7 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 22520 byte(s)
Diff to previous 95269 (colored)
Fix the display of the default name for the mime types config
file.

PR:           9729
Submitted by: Matthew Brecknell <mbrecknell@orchestream.com>
Reviewed by:  Jeff Trawick

Revision 95269 - (view) (annotate) - [select for diffs]
Modified Fri May 24 18:48:10 2002 UTC (7 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 22511 byte(s)
Diff to previous 95254 (colored)
the "-k startssl" parameter is reverted by popular demand

Revision 95254 - (view) (annotate) - [select for diffs]
Modified Thu May 23 18:52:26 2002 UTC (7 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 22520 byte(s)
Diff to previous 95237 (colored)
issue the usage message if there are extraneous arguments on
the command line

Revision 95237 - (view) (annotate) - [select for diffs]
Modified Thu May 23 12:58:37 2002 UTC (7 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 22496 byte(s)
Diff to previous 95236 (colored)
Add "-k start|startssl|restart|graceful|stop" support to httpd
for the Unix MPMs.  These have semantics very similar to the
old apachectl commands of the same name.

The use of stderr/stdout and exit status for error conditions
needs to be revisited.  For now it matches apachectl behavior.

Justin Erenkrantz got the ball rolling with this feature.  Some
of his support code was used unchanged.  Other code was shuffled
around and modified or rewritten.

Revision 95236 - (view) (annotate) - [select for diffs]
Modified Thu May 23 12:20:56 2002 UTC (7 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 21979 byte(s)
Diff to previous 95206 (colored)
fix a spelling error in a comment

Revision 95206 - (view) (annotate) - [select for diffs]
Modified Tue May 21 15:40:51 2002 UTC (7 years, 6 months ago) by aaron
Original Path: httpd/httpd/trunk/server/main.c
File length: 21978 byte(s)
Diff to previous 95149 (colored)
Omit the second linefeed after "Syntax OK"

Submitted by:	Joe Orton <jorton@redhat.com>

Revision 95149 - (view) (annotate) - [select for diffs]
Modified Fri May 17 11:11:39 2002 UTC (7 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 22001 byte(s)
Diff to previous 94681 (colored)
stop using APLOG_NOERRNO in calls to ap_log_?error()

Revision 94681 - (view) (annotate) - [select for diffs]
Modified Wed Apr 17 16:36:28 2002 UTC (7 years, 7 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 22573 byte(s)
Diff to previous 94633 (colored)
     Introduced -E startup_logfile_name option to httpd to allow admins
     to begin logging errors immediately.  This provides Win32 users
     an alternative to sending startup errors to the event viewer, and
     allows other daemon tool authors an alternative to logging to stderr.

Revision 94633 - (view) (annotate) - [select for diffs]
Modified Sat Apr 13 19:35:18 2002 UTC (7 years, 7 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 22198 byte(s)
Diff to previous 94434 (colored)
  Correct const'ness of argv in all support apps, and use the new
  apr_app_initialize over apr_initialize for win32, and other platforms
  that may wish to tweak 'apr-ized' application support (e.g. Netware?)

Revision 94434 - (view) (annotate) - [select for diffs]
Modified Thu Apr 4 18:36:03 2002 UTC (7 years, 7 months ago) by jim
Original Path: httpd/httpd/trunk/server/main.c
File length: 22176 byte(s)
Diff to previous 94160 (colored)
Added support for Posix semaphore-based mutex locking (AcceptMutex posixsem).
It's between pthread and sysvsem in the DEFAULT priority ranking. This
makes it the new default for Darwin, and adds support for it for other
platforms as well (like Solaris).
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 94160 - (view) (annotate) - [select for diffs]
Modified Mon Mar 25 19:04:28 2002 UTC (7 years, 8 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 22089 byte(s)
Diff to previous 94140 (colored)
  Integrate rbb's forward port of -k config into the -h(elp), and
  reorder some directives in the -h(elp) so they 'flow'.

Revision 94140 - (view) (annotate) - [select for diffs]
Modified Fri Mar 22 20:24:22 2002 UTC (7 years, 8 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 21976 byte(s)
Diff to previous 93918 (colored)
Tag some pools

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
Original Path: httpd/httpd/trunk/server/main.c
File length: 21904 byte(s)
Diff to previous 93813 (colored)
Update our copyright for this year.

Revision 93813 - (view) (annotate) - [select for diffs]
Modified Sat Mar 9 14:13:49 2002 UTC (7 years, 8 months ago) by striker
Original Path: httpd/httpd/trunk/server/main.c
File length: 21904 byte(s)
Diff to previous 93656 (colored)
Style Police comming through...

Revision 93656 - (view) (annotate) - [select for diffs]
Modified Fri Mar 1 06:48:02 2002 UTC (7 years, 8 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 20493 byte(s)
Diff to previous 93440 (colored)
  For fat-fingered friends and others who like typing err and warn rather
  than spelling it out on the -e argument.

Revision 93440 - (view) (annotate) - [select for diffs]
Modified Fri Feb 15 23:21:14 2002 UTC (7 years, 9 months ago) by aaron
Original Path: httpd/httpd/trunk/server/main.c
File length: 20491 byte(s)
Diff to previous 93240 (colored)
This comment is bogus since we decided to keep -X.

Obtained from:  Thom Park <tpark@borland.com>

Revision 93240 - (view) (annotate) - [select for diffs]
Modified Mon Feb 4 23:30:37 2002 UTC (7 years, 9 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 20552 byte(s)
Diff to previous 93224 (colored)
  NOERRNO?  Of course we have an ERRNO :)

Revision 93224 - (view) (annotate) - [select for diffs]
Modified Mon Feb 4 16:58:54 2002 UTC (7 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 20563 byte(s)
Diff to previous 93063 (colored)
This patch allows the prefork MPM to print messages to the console if it
can't open a socket for some reason.

Revision 93063 - (view) (annotate) - [select for diffs]
Modified Mon Jan 28 23:49:40 2002 UTC (7 years, 9 months ago) by aaron
Original Path: httpd/httpd/trunk/server/main.c
File length: 20458 byte(s)
Diff to previous 92893 (colored)
The pre_config hook now takes a return value. This allows modules to
cause the server to bail out under error conditions.

Revision 92893 - (view) (annotate) - [select for diffs]
Modified Thu Jan 17 22:28:08 2002 UTC (7 years, 10 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 20083 byte(s)
Diff to previous 92891 (colored)
get the declaration of strcasecmp() on AIX

Revision 92891 - (view) (annotate) - [select for diffs]
Modified Thu Jan 17 20:15:12 2002 UTC (7 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 20058 byte(s)
Diff to previous 92771 (colored)
  Allow the user to get detailed debugging information without a full
  recompile [absolutely necessary on Win32 and other platforms that
  really don't support administrator-compilation.]

  -e level  follows the LogLevel options.

  The only question, should -e override the compiled-in default for
  the creation of the server_rec?  No strong feeling either way, here.

Revision 92771 - (view) (annotate) - [select for diffs]
Modified Tue Jan 8 17:07:19 2002 UTC (7 years, 10 months ago) by dreid
Original Path: httpd/httpd/trunk/server/main.c
File length: 18839 byte(s)
Diff to previous 92769 (colored)
Restore the apr_pool_clear calls to main.c in case we have
third-parties who are overriding the open_logs hook, in which case
they'd miss the plog being cleared.

Submitted by:	Justin <jerenkrantz@apache.org>

Revision 92769 - (view) (annotate) - [select for diffs]
Modified Tue Jan 8 16:30:16 2002 UTC (7 years, 10 months ago) by dreid
Original Path: httpd/httpd/trunk/server/main.c
File length: 18783 byte(s)
Diff to previous 92519 (colored)
This small patch modifies the log's to use plog instead of pconf.
Basically pconf is cleared at different times from plog, and this
has the effect of leaving stderr closed when going into the next
stage of the config. This also had the effect of allowing FreeBSD
with threads to create a pipe with stderr's fd at one end, and this
resulted in problems with the signal polling and high cpu usage.

In addition, move the clearing of plog from main.c to core.c where
it seems more appropriate.

This solves the first and main problem that FreeBSD has with the
threaded MPM's.

Revision 92519 - (view) (annotate) - [select for diffs]
Modified Tue Dec 18 20:26:15 2001 UTC (7 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 18832 byte(s)
Diff to previous 92339 (colored)
tag a few of the key httpd pools

Revision 92339 - (view) (annotate) - [select for diffs]
Modified Wed Dec 5 15:41:25 2001 UTC (7 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 18680 byte(s)
Diff to previous 92322 (colored)
hmmm... gcc 2.95.2 on AIX says sizeof is long...  fix up
a printf to always have a match between the format string
and argument

Revision 92322 - (view) (annotate) - [select for diffs]
Modified Tue Dec 4 18:36:51 2001 UTC (7 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 18525 byte(s)
Diff to previous 92296 (colored)
tweak httpd -V output to show the architecture (bits in a pointer)
and whether or not APR_HAS_SENDFILE is defined

Revision 92296 - (view) (annotate) - [select for diffs]
Modified Mon Dec 3 14:28:39 2001 UTC (7 years, 11 months ago) by ben
Original Path: httpd/httpd/trunk/server/main.c
File length: 18399 byte(s)
Diff to previous 92246 (colored)
Handle the ? option.

Revision 92246 - (view) (annotate) - [select for diffs]
Modified Thu Nov 29 07:30:49 2001 UTC (7 years, 11 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 18388 byte(s)
Diff to previous 92243 (colored)
  Finish undoing that last patch... previous commit simply cleaned it up,
  I was working with an unsaved verison when I pushed the button.

Revision 92243 - (view) (annotate) - [select for diffs]
Modified Thu Nov 29 07:27:57 2001 UTC (7 years, 11 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 18703 byte(s)
Diff to previous 92241 (colored)
  Revert my last patch to detect a 'leftover' arg.  Apparently there is
  no way to distinguish between an extra arg, and a -x foo arg, or else
  our getopt is broken at the moment.

  I can't dig further into getopt right now, so this will wait for another
  day or another hacker to resolve.

Revision 92241 - (view) (annotate) - [select for diffs]
Modified Thu Nov 29 07:10:40 2001 UTC (7 years, 11 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 18710 byte(s)
Diff to previous 92230 (colored)
  We never tested for invalid 'additional' arguments that were ignored.
  Was there any point to allowing additional, unused args after the
  various supported switches?

  This prevents the Apache server from starting with an httpd somefooness
  invocation.

Revision 92230 - (view) (annotate) - [select for diffs]
Modified Thu Nov 29 04:06:05 2001 UTC (7 years, 11 months ago) by dougm
Original Path: httpd/httpd/trunk/server/main.c
File length: 18369 byte(s)
Diff to previous 92149 (colored)
carry over from 1.3: disable profiling in the parent process #ifdef GPROF
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 92149 - (view) (annotate) - [select for diffs]
Modified Sat Nov 24 00:08:30 2001 UTC (8 years ago) by ianh
Original Path: httpd/httpd/trunk/server/main.c
File length: 18311 byte(s)
Diff to previous 92144 (colored)
change open_logs hook to return a value, allowing you to flag a error
while opening logs

Obtained from: Doug MacEachern

Revision 92144 - (view) (annotate) - [select for diffs]
Modified Fri Nov 23 16:35:22 2001 UTC (8 years ago) by ianh
Original Path: httpd/httpd/trunk/server/main.c
File length: 17943 byte(s)
Diff to previous 91178 (colored)
Modify post_config hook so that it can return a error,
causing the server not to start.
previous method was to call exit(1) which would not fail
gracefully

PR:
Obtained from:
Submitted by:
Reviewed by:	(Idea only Jeff Trawick)

Revision 91178 - (view) (annotate) - [select for diffs]
Modified Fri Sep 28 15:24:34 2001 UTC (8 years, 1 month ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 17580 byte(s)
Diff to previous 90824 (colored)
  Debug conf pool constness.  This is a noop most of the time on most
  platforms, but it's only called twice per restart, so this is mostly
  harmless.

Revision 90824 - (view) (annotate) - [select for diffs]
Modified Thu Aug 30 20:50:06 2001 UTC (8 years, 2 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/main.c
File length: 17499 byte(s)
Diff to previous 89198 (colored)
Add -X functionality back to httpd.

- Updates upgrading.html
- Reverts Aaron's earlier docco patch (sorry...)
- Adds -X to all mpms in the tree

Revision 89198 - (view) (annotate) - [select for diffs]
Modified Tue May 22 01:31:12 2001 UTC (8 years, 6 months ago) by fielding
Original Path: httpd/httpd/trunk/server/main.c
File length: 17393 byte(s)
Diff to previous 89150 (colored)
Moved util_uri to apr-util/uri/apr_uri, which means adding the apr_
prefix to all of the uri functions (yuck), changing some includes,
and using APR error codes instead of HTTP-specific error codes.

Other notes to test this patch:
- You need to delete the util_uri.h file - exports picks up on this.
- I'd like to remove the apr_uri.h from httpd.h, but that might
  increase the complexity of this patch even further.  Once this patch
  is accepted (in some form), then I can focus on removing apr_uri.h
  from httpd.h entirely.  I need baby steps (heh) right now.
- I imagine that this might break a bunch of stuff in Win32 or other OS
  builds with foreign dependency files.  Any help here is appreciated.

This is a start...  -- justin

Submitted by:	Justin Erenkrantz
Reviewed by:	Roy Fielding

Revision 89150 - (view) (annotate) - [select for diffs]
Modified Fri May 18 11:42:10 2001 UTC (8 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 17394 byte(s)
Diff to previous 88716 (colored)
Fix command-line processing so that if a bad argument is specified
Apache will exit.

Revision 88716 - (view) (annotate) - [select for diffs]
Modified Wed Apr 4 07:15:35 2001 UTC (8 years, 7 months ago) by orlikowski
Original Path: httpd/httpd/trunk/server/main.c
File length: 17297 byte(s)
Diff to previous 88296 (colored)
Module writers for 2.0 shouldn't still be relying on a no-op for
compatibilities' sake. Let's kill ap_util_uri_init, since it serves no
purpose now.

Revision 88296 - (view) (annotate) - [select for diffs]
Modified Sat Feb 24 03:40:50 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/main.c
File length: 17322 byte(s)
Diff to previous 88291 (colored)
clean out some old crud from ap_config.h

Revision 88291 - (view) (annotate) - [select for diffs]
Modified Fri Feb 23 18:17:19 2001 UTC (8 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/main.c
File length: 17456 byte(s)
Diff to previous 88261 (colored)
remove ap_{post_config,child_init}_hook
replace usage with ap_run_{post_config,child_init}
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88261 - (view) (annotate) - [select for diffs]
Modified Wed Feb 21 13:35:34 2001 UTC (8 years, 9 months ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 17458 byte(s)
Diff to previous 88260 (colored)
Oops - better *think* first. Fix typo.
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88260 - (view) (annotate) - [select for diffs]
Modified Wed Feb 21 13:34:51 2001 UTC (8 years, 9 months ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 17455 byte(s)
Diff to previous 88232 (colored)
Display APACHE_MPM_DIR in the list of #defines, and
remove the duplicate APR_HAS_MMAP test.

Revision 88232 - (view) (annotate) - [select for diffs]
Modified Mon Feb 19 02:06:58 2001 UTC (8 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/main.c
File length: 17425 byte(s)
Diff to previous 88184 (colored)
rename miss: s/apr_clear_pool/apr_pool_clear/g

Revision 88184 - (view) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (8 years, 9 months ago) by fielding
Original Path: httpd/httpd/trunk/server/main.c
File length: 17425 byte(s)
Diff to previous 88103 (colored)
Update copyright to 2001

Revision 88103 - (view) (annotate) - [select for diffs]
Modified Mon Feb 12 02:49:56 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/main.c
File length: 17420 byte(s)
Diff to previous 88060 (colored)
*) remove some obsolete/unused defines from httpd.h.
*) remove DEFAULT_XFERLOG from main.c; it is never set/used
*) move ap_get_max_daemons() to ap_mpm.h
*) move DEFAULT_LISTENBACKLOG to mpm_common.h

Revision 88060 - (view) (annotate) - [select for diffs]
Modified Sat Feb 10 13:05:29 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/main.c
File length: 17511 byte(s)
Diff to previous 88019 (colored)
Clean up some of the includes:
- explicitly include apr_lib.h since ap_config.h doesn't
- use apr_want.h where possible
- use APR_HAVE_ where possible
- remove some unneeded includes

Revision 88019 - (view) (annotate) - [select for diffs]
Modified Thu Feb 8 07:45:33 2001 UTC (8 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/main.c
File length: 17492 byte(s)
Diff to previous 87868 (colored)
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 87868 - (view) (annotate) - [select for diffs]
Modified Sat Jan 27 17:50:47 2001 UTC (8 years, 9 months ago) by ben
Original Path: httpd/httpd/trunk/server/main.c
File length: 17488 byte(s)
Diff to previous 87776 (colored)
Add support for type-safe optional functions.

Revision 87776 - (view) (annotate) - [select for diffs]
Modified Sun Jan 21 05:26:45 2001 UTC (8 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17455 byte(s)
Diff to previous 87775 (colored)
Back out the last change (the one that went in without a commit log)
I thought this change was necessary to stop reporting the SERVER_VERSION
twice.  In reality, the apr_hook_deregister_all() call in
ap_clear_module_list solved that problem.

Revision 87775 - (view) (annotate) - [select for diffs]
Modified Sun Jan 21 05:23:22 2001 UTC (8 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17336 byte(s)
Diff to previous 87731 (colored)
PR:

Revision 87731 - (view) (annotate) - [select for diffs]
Modified Fri Jan 19 07:04:36 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 17429 byte(s)
Diff to previous 87699 (colored)
  The big change.  This is part 3 of the apr-util symbols rename, please
  see the first commit of srclib/apr-util/include (cvs apr-util/include)
  for the quick glance at symbols changed.

Revision 87699 - (view) (annotate) - [select for diffs]
Modified Wed Jan 17 22:04:45 2001 UTC (8 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 17426 byte(s)
Diff to previous 87583 (colored)
  Provide apr_pool_t arg to register_hooks, since anything they do in that
  step -must- be done with a pool that will not outlive the cmd pool, from
  which they may have been dynamically loaded.

  This needs further review, it's committed only as a stopgap for those
  who's builds I broke, sorry.  Review tbc late this evening.

Revision 87583 - (view) (annotate) - [select for diffs]
Modified Thu Jan 4 18:22:50 2001 UTC (8 years, 10 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 17419 byte(s)
Diff to previous 87564 (colored)
Set up stderr logging explictly early in initialization so that a pool is
available for creating the APR representation of stderr.

Revision 87564 - (view) (annotate) - [select for diffs]
Modified Mon Jan 1 00:36:46 2001 UTC (8 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17231 byte(s)
Diff to previous 87460 (colored)
Remove AP_USE_MMAP_FILES, it doesn't really control anything anymore.  Now
we just use APR_HAS_MMAP directly, just like APR-util does.

Revision 87460 - (view) (annotate) - [select for diffs]
Modified Wed Dec 20 16:44:01 2000 UTC (8 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 17345 byte(s)
Diff to previous 87424 (colored)
Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro.

Revision 87424 - (view) (annotate) - [select for diffs]
Modified Tue Dec 19 17:05:48 2000 UTC (8 years, 11 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17348 byte(s)
Diff to previous 87391 (colored)
Force all Apache functions to be linked into the executable, whether they
are used or not.  This uses the same mechanism that is used for APR
and APR-util.  This may not be the correct solution, but it works, and that
is what I really care about.  This also renames CHARSET_EBCDIC to
AP_CHARSET_EBCDIC.  This is for namespace correctness, but it also makes
the exports script a bit easier.

Revision 87391 - (view) (annotate) - [select for diffs]
Modified Sun Dec 17 22:47:32 2000 UTC (8 years, 11 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17339 byte(s)
Diff to previous 87368 (colored)
Get -t -D DUMP_VHOSTS working and properly documented.  This removes the
-S option from the docs.

Revision 87368 - (view) (annotate) - [select for diffs]
Modified Sat Dec 16 11:45:13 2000 UTC (8 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 17390 byte(s)
Diff to previous 87249 (colored)
Display whether or not APR (and thus Apache) supports IPv6 in the
httpd -V output.

Revision 87249 - (view) (annotate) - [select for diffs]
Modified Thu Dec 7 11:37:08 2000 UTC (8 years, 11 months ago) by gstein
Original Path: httpd/httpd/trunk/server/main.c
File length: 17330 byte(s)
Diff to previous 87143 (colored)
*) fix up buildexports.sh:
   - enable it to be run from any dir by passing a parameter for the
     location of srclib, and using its own location for determining where
     the AWK script is located
   - accept exports files on STDIN, and produce output on STDOUT
   - use "pwd" and cd back to it, rather than assuming ../../.. (which might
     not apply if we feed it other export files)
   - add USAGE reporting

*) generate exports.c during normal build of "server" rather than during the
   buildconf stage. update invocation to match above changes

*) revamp the ap_ugly_hack referencing in main.c: put it at the bottom of
   the file with the other, similar references, and style it similarly.

*) remove the ap_ugly_hack declaration from http_main.h; it is internal to
   the "server" code

Revision 87143 - (view) (annotate) - [select for diffs]
Modified Fri Dec 1 14:02:49 2000 UTC (8 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 17211 byte(s)
Diff to previous 87130 (colored)
Add "-D PROCESS_LOCK_IS_GLOBAL" to the httpd -V output when
appropriate.

Revision 87130 - (view) (annotate) - [select for diffs]
Modified Wed Nov 29 17:33:03 2000 UTC (8 years, 11 months ago) by gstein
Original Path: httpd/httpd/trunk/server/main.c
File length: 17125 byte(s)
Diff to previous 87080 (colored)
Use "const char * const *" for process->argv (which is the correct
const-ness since we sometimes put "some string" in there, and also the CRT's
argv). propagate this change within http_main and mpm/winnt/ (also correct
some other const type usage within the MPM).

fix ab's call to parse_url() which removed a const to actually manipulate an
arg from the CRT's argv (indirectly via opt->arg). no idea how this has
avoided segfaulting.

Revision 87080 - (view) (annotate) - [select for diffs]
Modified Sun Nov 26 04:47:43 2000 UTC (9 years ago) by gstein
Original Path: httpd/httpd/trunk/server/main.c
File length: 17141 byte(s)
Diff to previous 87009 (colored)
*) Compensate for recent changes in the APR headers. Specifically, some
   files need to specifically include stdio.h, or a particular apr_*.h
   header.

*) Adjust callers of apr_create_process() to deal with the extra "const"

*) Add "const" to args of ap_os_create_privileged_process()

Revision 87009 - (view) (annotate) - [select for diffs]
Modified Sat Nov 18 15:00:39 2000 UTC (9 years ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 17050 byte(s)
Diff to previous 86948 (colored)
  Extern symbols (per the warning) belong elsewhere, since (on Win32) the
  http_main.c is both the startup and entry stub.

Revision 86948 - (view) (annotate) - [select for diffs]
Modified Tue Nov 14 01:55:26 2000 UTC (9 years ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17080 byte(s)
Diff to previous 86939 (colored)
Port mod_info to 2.0.  This is basically a complete re-write to use the
config tree instead of re-reading the config file.  As a part of this
change, the config tree needs to be exposed to modules as ap_conftree.
Submitted by:	Ryan Morgan <rmorgan@covalent.net>
Reviewed by:	Ryan Bloom

Revision 86939 - (view) (annotate) - [select for diffs]
Modified Mon Nov 13 16:26:42 2000 UTC (9 years ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17073 byte(s)
Diff to previous 86802 (colored)
Fix type complaints on Xlc.
Submitted by:	Victor J. Orlikowski <v.j.orlikowski@gte.net>

Revision 86802 - (view) (annotate) - [select for diffs]
Modified Thu Nov 2 18:51:08 2000 UTC (9 years ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17064 byte(s)
Diff to previous 86796 (colored)
Create a feature macro that determines if Autoconf was used to configure
the server.  The ap_ugly_hack variable is only valid if Autoconf was used
for the configuration.

Revision 86796 - (view) (annotate) - [select for diffs]
Modified Thu Nov 2 04:44:43 2000 UTC (9 years ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 17096 byte(s)
Diff to previous 86770 (colored)
  Get win32 building again... we need something just a little more sophisticated here

Submitted by:	John Sterling <sterling@covalent.net
Reviewed by:	rbb, wrowe

Revision 86770 - (view) (annotate) - [select for diffs]
Modified Mon Oct 30 23:08:27 2000 UTC (9 years ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 17032 byte(s)
Diff to previous 86661 (colored)
This is an ugly little hack to allow DSO modules to work.  This basically
forces Apache to link in all of the APR functions whether they are used
by any static modules or not.

Revision 86661 - (view) (annotate) - [select for diffs]
Modified Thu Oct 19 00:05:00 2000 UTC (9 years, 1 month ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 16782 byte(s)
Diff to previous 86149 (colored)
Namespace protect the rest of the macros defined by ap_config.h

Revision 86149 - (view) (annotate) - [select for diffs]
Modified Sat Aug 26 10:02:03 2000 UTC (9 years, 3 months ago) by dreid
Original Path: httpd/httpd/trunk/server/main.c
File length: 16755 byte(s)
Diff to previous 86035 (colored)
Remove a needless cast.

Submitted by:	Victor J Orlikowski <v.j.orlikowski@gte.net>
Reviewed by:	dreid@apache.org

Revision 86035 - (view) (annotate) - [select for diffs]
Modified Wed Aug 9 14:56:55 2000 UTC (9 years, 3 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 16770 byte(s)
Diff to previous 86008 (colored)
  Provide the first real-world update for the new apr_initopt/apr_getopt
  changes.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 86008 - (view) (annotate) - [select for diffs]
Modified Sun Aug 6 06:07:53 2000 UTC (9 years, 3 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 16726 byte(s)
Diff to previous 85976 (colored)
  Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
  see src/lib/apr/apr_compat.h for most details.
  Also a few minor nits to get Win32 to build.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 85976 - (view) (annotate) - [select for diffs]
Modified Wed Aug 2 05:27:38 2000 UTC (9 years, 3 months ago) by dougm
Original Path: httpd/httpd/trunk/server/main.c
File length: 16721 byte(s)
Diff to previous 85867 (colored)
prefix libapr functions and types with apr_

Revision 85867 - (view) (annotate) - [select for diffs]
Modified Fri Jul 21 19:50:58 2000 UTC (9 years, 4 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 16682 byte(s)
Diff to previous 85821 (colored)
Move all APR functions related to strings to their own directory, and
create a new header for those functions.  This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories.

Revision 85821 - (view) (annotate) - [select for diffs]
Modified Tue Jul 11 22:12:18 2000 UTC (9 years, 4 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 16657 byte(s)
Diff to previous 85522 (colored)
#ifdef APR_HAS_OTHER_CHILD to #if APR_HAS_OTHER_CHILD. Not tested.

Revision 85522 - (view) (annotate) - [select for diffs]
Modified Sun Jun 11 22:06:57 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 16660 byte(s)
Diff to previous 85501 (colored)
Fix a couple of problems with the pre/post config processing changes:

1) symptom: on system with bad/no DNS setup, ServerName isn't
   processed so init fails

cause:

  ap_fini_vhost_config() called before ap_process_config_tree(), so
  ServerName was never stored in the config structure

2) symptom: on system with virtual hosts configured, SIGSEGV in
   open_multi_logs()

cause:

   the module configs for the virtual hosts haven't been merged in
   yet, and open_multi_logs() gets NULL for the mod_log_config
   configuration

This stuff needs to be cleaned up further, exploring the use of a
post-config hook for fixup_virtual_hosts(), ap_fini_vhost_config(),
and ap_sort_hooks(), getting a lot of logic out of main(), and
processing the config tree only once.

Revision 85501 - (view) (annotate) - [select for diffs]
Modified Sat Jun 10 16:15:08 2000 UTC (9 years, 5 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 16394 byte(s)
Diff to previous 85499 (colored)
Cleanup more of the Apache configuration.  This removes all of the shared
memory checks, because Apache relies completely on APR for shared memory
support.  In doing this, we also need to know how APR/MM are providing
our shared memory (ie file or memory) that requires the change made to
APR's configure script that was just committed.

Revision 85499 - (view) (annotate) - [select for diffs]
Modified Sat Jun 10 11:46:37 2000 UTC (9 years, 5 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 16526 byte(s)
Diff to previous 85463 (colored)
httpd -V now displays APR's selection of the lock mechanism instead of the
symbols previously respected by prefork.

Revision 85463 - (view) (annotate) - [select for diffs]
Modified Thu Jun 8 00:28:35 2000 UTC (9 years, 5 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 16569 byte(s)
Diff to previous 85430 (colored)
Remove all occurances of gettimeofday.  Replace it with ap_now which
provides the same function but works cross-paltform.

Revision 85430 - (view) (annotate) - [select for diffs]
Modified Mon Jun 5 22:39:03 2000 UTC (9 years, 5 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 16566 byte(s)
Diff to previous 85393 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Unbind the old main_win32.c code and rebind to the new mpm logic
  in the modules/mpm/winnt directory.  Includes some simple cleanups.

  The old sources in os/win32 will disappear at the end of this week.

Revision 85393 - (view) (annotate) - [select for diffs]
Modified Sat Jun 3 16:27:03 2000 UTC (9 years, 5 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 16699 byte(s)
Diff to previous 85361 (colored)
Modify the config order so that we read the config, process all EXEC_ON_READ
directives at the same time, run pre_config hook for all modules, and
then walk the tree.  This allows all modules to have a pre_config hook and
know that it will be called at a reasonable time.  I also made "Include"
an EXEC_ON_READ directive so that it is included in the tree properly.
This was required after the other changes that were made.

Revision 85361 - (view) (annotate) - [select for diffs]
Modified Wed May 31 22:06:33 2000 UTC (9 years, 5 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 16272 byte(s)
Diff to previous 85354 (colored)
Remove a warning when compiled with --use-maintainer-mode.  Basically,
process_rec should just be storing argv the same way that getopt
expects it.

Revision 85354 - (view) (annotate) - [select for diffs]
Modified Tue May 30 22:54:31 2000 UTC (9 years, 5 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 16272 byte(s)
Diff to previous 85340 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  How, precisely, was Apache going to do anything with rewritten args ;-?
  +1 on my personal oh-duh tally for the weekend.

Revision 85340 - (view) (annotate) - [select for diffs]
Modified Mon May 29 04:17:41 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 16232 byte(s)
Diff to previous 85326 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  One last precursor to the common code base for Win32 rewrite_args from
  it's MPM.  Since we need to walk the arg list... why maintain it in
  several places.  This patch adds the AP_SERVER_BASEARGS definition to
  the header, so any mpm (and mod_info, for example) can know what args
  are legitimate, even when they plan to ignore them.

Revision 85326 - (view) (annotate) - [select for diffs]
Modified Sun May 28 03:52:42 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 16068 byte(s)
Diff to previous 85321 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Finally a patch that can't (well, shouldn't :-) break any other platform.

  Open up the symbols defined for http_main.c to move main() from the core
  under Win32 (that's the real main(), not that apache_main() thing).

  Win32 Project file changes will follow in a seperate patch.

Revision 85321 - (view) (annotate) - [select for diffs]
Modified Sat May 27 23:53:45 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 16087 byte(s)
Diff to previous 85312 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Document the lack of exports so http_main.c stays that way,
  as suggested by Greg Stein.

Revision 85312 - (view) (annotate) - [select for diffs]
Modified Sat May 27 07:05:17 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 15857 byte(s)
Diff to previous 85311 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  Cleaning up.  Note that apache (or https) -D DEFINE is now enabled, the
  shared data is now properly moved to either ap_hooks.c or http_config.c,
  and all should be well with rewrite_args.

  Next stop, no more apache_main entry point.  That's why this file needs
  to be empty of any callbacks or shared data, as it will bind to the core
  but the core won't be looking back into http_main.

Revision 85311 - (view) (annotate) - [select for diffs]
Modified Sat May 27 06:22:55 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 15850 byte(s)
Diff to previous 85248 (colored)
  Pass the process_rec to the MPM to allow rewriting of the args list.
  Especially necessary under Win32, or other non-unix front ends where
  oddball arguments might be required, but without causing a mess in
  http_main.c.

Revision 85248 - (view) (annotate) - [select for diffs]
Modified Thu May 18 19:56:16 2000 UTC (9 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 15952 byte(s)
Diff to previous 85235 (colored)
Add "-D APACHE_XLATE" to the output of httpd -V when APACHE_XLATE
is defined at compile time.

Revision 85235 - (view) (annotate) - [select for diffs]
Modified Wed May 17 00:35:21 2000 UTC (9 years, 6 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/main.c
File length: 15891 byte(s)
Diff to previous 85171 (colored)
  Radical overhaul of the Apache-2.0/Win32 mpm <-> service schema.

  1) Services and Registry are not part of the core Apache operations,
     so registry.c and service.c are moved into Apache.exe - assuring
     the service control layers of NT and 95 are truly isolated.

  2) Isolation can't be complete, we need to know when the mpm is
     fully initialized.  A new pointer to a no-arg function returning
     void is provided for this purpose, ap_mpm_init_complete.  It is
     only called if overridden with a non-NULL value prior to invoking
     apache_main.

  3) Control+C, Control+Break are handled on both WinNT and Win9x.

  4) The window close, logoff and shutdown events are handled on WinNT.

  5) The beginnings of a Win95 service startup are provided, -k startservice
     but this is horribly incomplete since Win95 will NOT report shutdown.

Revision 85171 - (view) (annotate) - [select for diffs]
Modified Tue May 9 20:25:00 2000 UTC (9 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 15905 byte(s)
Diff to previous 85136 (colored)
generic EBCDIC support code, changes to rfc1413.c to use APR
translation in its EBCDIC support

Revision 85136 - (view) (annotate) - [select for diffs]
Modified Thu May 4 04:02:37 2000 UTC (9 years, 6 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15752 byte(s)
Diff to previous 84963 (colored)
Make reliable piped logs work on 2.0.

Revision 84963 - (view) (annotate) - [select for diffs]
Modified Fri Apr 14 15:59:20 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15744 byte(s)
Diff to previous 84961 (colored)
Change ap_context_t to ap_pool_t.  This compiles, runs, and serves pages
on Linux, but probably breaks somewhere.

Revision 84961 - (view) (annotate) - [select for diffs]
Modified Fri Apr 14 02:39:08 2000 UTC (9 years, 7 months ago) by dgaudet
Original Path: httpd/httpd/trunk/server/main.c
File length: 15786 byte(s)
Diff to previous 84878 (colored)
more namespace cleanup

Revision 84878 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 08:44:21 2000 UTC (9 years, 7 months ago) by fielding
Original Path: httpd/httpd/trunk/server/main.c
File length: 15780 byte(s)
Diff to previous 84864 (colored)
Update to Apache Software License version 1.1

Revision 84864 - (view) (annotate) - [select for diffs]
Modified Thu Mar 30 18:39:46 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15979 byte(s)
Diff to previous 84862 (colored)
Fix the warnings associated with the pre_config patch.

Revision 84862 - (view) (annotate) - [select for diffs]
Modified Thu Mar 30 15:30:36 2000 UTC (9 years, 7 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 16005 byte(s)
Diff to previous 84846 (colored)
Put the pre_config hook back into the table.  This solves the problem of
the pre-config hook only being valid for MPM's.  This patch also
distinguishes between STANDARD modules and MPM's.

Revision 84846 - (view) (annotate) - [select for diffs]
Modified Tue Mar 28 22:59:05 2000 UTC (9 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 15989 byte(s)
Diff to previous 84828 (colored)
Tweaked APR initialization and termination so that the lifetime
of memory management mutexes is longer than the lifetime of
managed memory.  APR apps must now call ap_terminate().

Revision 84828 - (view) (annotate) - [select for diffs]
Modified Thu Mar 23 14:48:45 2000 UTC (9 years, 8 months ago) by ake
Original Path: httpd/httpd/trunk/server/main.c
File length: 15893 byte(s)
Diff to previous 84822 (colored)
Clear hook registrations between reads of the config file.
When DSOs are unloaded and re-loaded the old hook pointers may
no longer be valid. This fix eliminates potential segfaults.

Revision 84822 - (view) (annotate) - [select for diffs]
Modified Wed Mar 22 10:26:44 2000 UTC (9 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/main.c
File length: 15763 byte(s)
Diff to previous 84771 (colored)
axe code to print "-D MULTITHREAD" for apache -V; MULTITHREAD
is a 1.3 hangover;
exit with a log message if ap_create_context() fails when
creating the initial context; otherwise, we SIGSEGV later

Revision 84771 - (view) (annotate) - [select for diffs]
Modified Wed Mar 15 23:18:32 2000 UTC (9 years, 8 months ago) by manoj
Original Path: httpd/httpd/trunk/server/main.c
File length: 15541 byte(s)
Diff to previous 84768 (colored)
Eliminate implicit usage of access.conf and srm.conf.

Revision 84768 - (view) (annotate) - [select for diffs]
Modified Tue Mar 14 22:06:47 2000 UTC (9 years, 8 months ago) by dreid
Original Path: httpd/httpd/trunk/server/main.c
File length: 15747 byte(s)
Diff to previous 84725 (colored)
This gets the server working again after Ryan's order change for
ap_getopt.

Revision 84725 - (view) (annotate) - [select for diffs]
Modified Fri Mar 10 00:07:37 2000 UTC (9 years, 8 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15747 byte(s)
Diff to previous 84677 (colored)
Fix all the License issues.  Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license

Revision 84677 - (view) (annotate) - [select for diffs]
Modified Mon Feb 28 03:13:47 2000 UTC (9 years, 8 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15621 byte(s)
Diff to previous 84661 (colored)
Remove second ap_initialize left over from previous patch.
Submitted by:	Jeff Trawick
Reviewed by:	Ryan Bloom

Revision 84661 - (view) (annotate) - [select for diffs]
Modified Wed Feb 23 15:37:37 2000 UTC (9 years, 9 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 15643 byte(s)
Diff to previous 84620 (colored)
2.0 builds, but dumps core on FreeBSD 3.3 (ap_lock).

Basically, ap_initialize() needs to get called before create_process(),
since create_process() passes op_on structure to semop() to get a lock, but
op_on isn't initialized until ap_initialize() calls setup_lock().  Here is
a slight rearrangement to main() which calls ap_initialize() earlier...

Submitted by:	Jeff Trawick <trawick@us.ibm.com>
Reviewed by:	Bill Stoddard <stoddard@us.ibm.com>

Revision 84620 - (view) (annotate) - [select for diffs]
Modified Mon Feb 14 22:01:08 2000 UTC (9 years, 9 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 15585 byte(s)
Diff to previous 84566 (colored)
Rework the code to handle apache -k shutdown|restart. The fundamental problem
being solved here is determining the best way to discover the Apache
parent process PID (stored in the location specified by the PidFile directive).
This patch attempts to read the config file directly to determine the
pidfile and avoids going through the motions of calling all the module initialization
routines.

This patch will not work if the pidfile directive is in a file pointed to by
an include directive. Not sure is this is a common case or not on Windows.
If it is, it is easy enough to add a bit more code to follow include
directives. An interesting modification would be to detect the presence of a \
-C directive containing a pointer to the pidfile: E.g.,
apache -k restart -C "pidfile d:/mypidfile". Let's keep it simple for now and
see what happens.

Revision 84566 - (view) (annotate) - [select for diffs]
Modified Thu Feb 3 19:38:08 2000 UTC (9 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15860 byte(s)
Diff to previous 84531 (colored)
APR requires that ap_initialize is called as one of the first functions.
It sets up the rest of the APR types.  This was causing lockups whenever
we tried to us an APR lock.

Revision 84531 - (view) (annotate) - [select for diffs]
Modified Fri Jan 28 18:02:29 2000 UTC (9 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15838 byte(s)
Diff to previous 84493 (colored)
Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX is
defined correctly in all C files.

Revision 84493 - (view) (annotate) - [select for diffs]
Modified Wed Jan 19 01:16:31 2000 UTC (9 years, 10 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 15838 byte(s)
Diff to previous 84342 (colored)
Finish the commits for the change in the header files.  Basically, this hides
all of the Apache macros that modules don't need access to.  This should
have been committed with the modules, but I wasn't paying attention to the
directory I was in when I ran the commit.
Submitted by:	Manoj Kasichainula and Ryan Bloom

Revision 84342 - (view) (annotate) - [select for diffs]
Modified Mon Dec 20 19:16:34 1999 UTC (9 years, 11 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 15747 byte(s)
Diff to previous 84341 (colored)
Get rid of the C++ style comment.

Revision 84341 - (view) (annotate) - [select for diffs]
Modified Mon Dec 20 19:07:33 1999 UTC (9 years, 11 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 15792 byte(s)
Diff to previous 84200 (colored)
Handle -k restart|shutdown command line option from http_main.c

Revision 84200 - (view) (annotate) - [select for diffs]
Modified Wed Dec 1 01:16:23 1999 UTC (9 years, 11 months ago) by manoj
Original Path: httpd/httpd/trunk/server/main.c
File length: 14363 byte(s)
Diff to previous 84143 (colored)
Eliminate ap_config.h's checks when using autoconf. Now, ap_ac_config.h
is used instead, and autoconf's configure script will check for
everything else.

Revision 84143 - (view) (annotate) - [select for diffs]
Modified Mon Nov 22 14:52:17 1999 UTC (10 years ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 14359 byte(s)
Diff to previous 84142 (colored)
Clean up the getopt stuff a bit.  Basically, I am removing the #define's,
and changing the names in the getopt.c file so that we are sure there is
no namespace collision between regular getopt's, and APR's getopt.

Revision 84142 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 22:10:22 1999 UTC (10 years ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 14377 byte(s)
Diff to previous 84134 (colored)
Use APR's getopt

Revision 84134 - (view) (annotate) - [select for diffs]
Modified Thu Nov 18 23:07:53 1999 UTC (10 years ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 14353 byte(s)
Diff to previous 84110 (colored)
First step in removing the fprintf(stderr problem from Apache.  Basically,
I defined APLOG_STARTUP, which refrains from printing the date string
and the log level information in log_error_core.  I then changed all the
fprintf(stderr calls to ap_log_error, and used APLOG_STARTUP.
log_error_core on Unix takes care of creating a log file and directing
it to stderr if a log file isn't already active.  I will continue to
make these changes tomorrow.  Currently, the main code and the dexter
mpm have been modified.

Revision 84110 - (view) (annotate) - [select for diffs]
Modified Mon Nov 8 18:54:12 1999 UTC (10 years ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 13388 byte(s)
Diff to previous 84006 (colored)
Get rid of dependency on os/win32/getopt.c & .h

Revision 84006 - (view) (annotate) - [select for diffs]
Modified Tue Oct 19 15:54:52 1999 UTC (10 years, 1 month ago) by bjh
Original Path: httpd/httpd/trunk/server/main.c
File length: 13380 byte(s)
Diff to previous 83987 (colored)
Use APR's getopt.

Revision 83987 - (view) (annotate) - [select for diffs]
Modified Wed Oct 13 20:27:55 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/main.c
File length: 13359 byte(s)
Diff to previous 83969 (colored)
Remove all but one WIN32 from http_main.  Other minor changes.

Revision 83969 - (view) (annotate) - [select for diffs]
Modified Mon Oct 11 22:07:29 1999 UTC (10 years, 1 month ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 13509 byte(s)
Diff to previous 83945 (colored)
Fix typos

Revision 83945 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 21:48:30 1999 UTC (10 years, 1 month ago) by martin
Original Path: httpd/httpd/trunk/server/main.c
File length: 13533 byte(s)
Diff to previous 83943 (colored)
ap_server_argv0 was undefined. Use a simple default (basename(argv[0]))

Revision 83943 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 20:48:26 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/main.c
File length: 13322 byte(s)
Diff to previous 83942 (colored)
Well this was thought provoking.

Drive out the use of malloc in two places.

In listen.c, using the global process pool instead.  That changes the
API into listen so that a process is passed in rather than the config
pool.  That's all was easy.

The pain is propogating a change into all N of the mpm, they
are all similar but different in their use of listen.c  There
is a lot to dislike about similar but code scattered code.

I changed the N setup_listener routines, they now take only
the server since they can dig the config and global pool
out of there.

Free today: ap_setup_prelinked_modules now takes the process so it
can allocate it's table in the process's pool rathern than use
malloc.

Revision 83942 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 18:13:17 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/main.c
File length: 13315 byte(s)
Diff to previous 83941 (colored)
Add process_rec to the top of {server,connection,request}_rec
hierarchy of structs that abstract server activities.  Store some
stuff in process_rec (finally a place to have nearly guiltless
globals) for example the global and configuration pools.  Put some
operations on process_rec in http_main, in particular the
destroy_and_exit operation, and the use it to do all the exit calls.
Change ap_read_config to operation on this "object" rather than on the
configuration pool.  Modify server_rec to point to the process, so you
can get at it most all the time which should finally allow most of the
server's malloc calls to be eliminated.

There are no locks in the process struct as yet, put them in as needed.
Some of the hooks should take this rather than conf. pool.

Revision 83941 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 15:36:40 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/main.c
File length: 12609 byte(s)
Diff to previous 83940 (colored)
Duh.

Revision 83940 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 15:33:06 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/main.c
File length: 12609 byte(s)
Diff to previous 83939 (colored)
Changed my mind, ptemp maybe "systolic" but since it is empty
during the entire time the server is serving it's best to destroy it.

Revision 83939 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 14:32:06 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/main.c
File length: 12570 byte(s)
Diff to previous 83936 (colored)
Man!  This file vastly improved.  Thanks Dean!

Use the abstraction API_EXPORT_NONSTD for exporting main (aka
apache_main).  Use clear rather than destroy on ptemp as other
'systolic' pools do.  That also fixing a leak of the first ptemp
created.  Let the destroy of pglobal to all the cleanup.  Meanwhile,
all exit paths should destroy pglobal so the cleanup/unwind gets run
and this routine sets a bad example by having many exits that don't -
another day.
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 83936 - (view) (annotate) - [select for diffs]
Modified Wed Oct 6 21:26:53 1999 UTC (10 years, 1 month ago) by bhyde
Original Path: httpd/httpd/trunk/server/main.c
File length: 12601 byte(s)
Diff to previous 83927 (colored)
Remove obsolete ap_util_init function.

Revision 83927 - (view) (annotate) - [select for diffs]
Modified Mon Oct 4 16:38:16 1999 UTC (10 years, 1 month ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 12621 byte(s)
Diff to previous 83901 (colored)
First patch to re-order function parameters.  This one gets the low hanging
fruit, and moves most of the result parameters to the first argument.
Future patches in this series will move the rest of the result parameters
to the beginning of the list, and will move the context's to the end of the
list

Revision 83901 - (view) (annotate) - [select for diffs]
Modified Tue Sep 14 13:37:45 1999 UTC (10 years, 2 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 12621 byte(s)
Diff to previous 83892 (colored)
A change to how APR uses user data.  Now, user data is a linked list that
is retreivable using a char string.  Basically, you provide a string that
will be used as a key when you store the data.  If the key was used before,
we will overwrite the old data.  When you want to retreive your data, pass
in the same key, and we will find the data you care about.  This also makes
it harder to put user data in when creating a context, so that option has
disappeared.  It is also impossible to inherit user data from parent contexts.
This option may be added in later.  I will be documenting this VERY soon.

Revision 83892 - (view) (annotate) - [select for diffs]
Modified Sat Sep 11 19:52:27 1999 UTC (10 years, 2 months ago) by ben
Original Path: httpd/httpd/trunk/server/main.c
File length: 12657 byte(s)
Diff to previous 83852 (colored)
Really get rid of unused options.

Revision 83852 - (view) (annotate) - [select for diffs]
Modified Tue Aug 31 05:35:52 1999 UTC (10 years, 2 months ago) by rbb
Original Path: httpd/httpd/trunk/server/main.c
File length: 12662 byte(s)
Diff to previous 83836 (colored)
Changed pools to contexts.  Tested with prefork and pthread mpm's.  I'll
check this out tomorrow and make sure everything was checked in correctly.

Revision 83836 - (view) (annotate) - [select for diffs]
Modified Sat Aug 28 12:22:10 1999 UTC (10 years, 3 months ago) by rse
Original Path: httpd/httpd/trunk/server/main.c
File length: 12526 byte(s)
Diff to previous 83822 (colored)
Make ``configure --with-option=devel'' under
GCC 2.95.1 happy by avoiding various warnings...

Revision 83822 - (view) (annotate) - [select for diffs]
Modified Fri Aug 27 22:57:27 1999 UTC (10 years, 3 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/main.c
File length: 12528 byte(s)
Diff to previous 83763 (colored)
A bunch of changes to get the server compiling on WIN32. mod_cgi, mod_include,
mod_isapi and mod_so don't work so I am not making them. Moved a lot of code out
of multithread.*  and into os.* (didn't want to add multithread to the new repository).
Much of this can be cleaned up when APR is stable.

And Dean's gonna but me for sure for the http_main hit. It's may be
possible to name a DLL entry point 'main()'. Just havent tried it yet.

Enjoy!

Revision 83763 - (view) (annotate) - [select for diffs]
Modified Thu Aug 26 10:45:57 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/main.c
File length: 12436 byte(s)
Diff to previous 83750 (colored)
Rearchitect the mess in http_main.c, http_core.c and buff.c.
Basic restructuring to introduce the MPM concept; includes various
changes to the module API... better described by docs/initial_blurb.txt.

Created multiple process model (MPM) concept by ripping out the process
guts from http_main.c and http_core.c and moving them to separate files
under src/modules/mpm/

Moved socket creation stuff to listen.c.
Moved connection open, maintenance and close to http_connection.c.

I/O layering and BUFF revamp.  Much of buff.c moved to ap_iol,
iol_socket, and iol_file.  See docs/buff.txt.

Moved user and auth fields from connection_rec to request_rec.
Removed RLIMIT stuff, supposedly to be implemented later in mod_cgi.
Disabled suexec, supposedly to be reimplemented later.

Submitted by:	Dean Gaudet

Revision 83750 - (view) (annotate) - [select for diffs]
Added Tue Aug 24 06:46:03 1999 UTC (10 years, 3 months ago) by fielding
Original Path: httpd/httpd/trunk/server/main.c
File length: 190574 byte(s)
Apache 1.3.9 baseline for the Apache 2.0 repository.

Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2