summaryrefslogtreecommitdiffstats
path: root/server/mpm_common.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The lots of little ones... APR_IS_STATUS_condition(rv) conditional macrosWilliam A. Rowe Jr2000-10-051-2/+2
| | | | | | | | | replacing the majority of fallible rv == APR_condition tests. But there are lots more to fix, these are the obvious ones that already did proper canonical error conversion. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86405 13f79535-47bb-0310-9956-ffa450edef68
* APRize disabling nagle (setting TCP_NODELAY).Brian Havard2000-08-221-5/+4
| | | | | | | | | | | | | Note that several areas have not been tested as they apply to MPMs or APR code that I can't test. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86133 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...William A. Rowe Jr2000-08-061-2/+2
| | | | | | | | | | | | | 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: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86008 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-12/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
* Eliminate references to specific MPMs from mpm_common.c by having theManoj Kasichainula2000-07-301-20/+5
| | | | | | | MPMs export interfaces to the tables used to keep track of children. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85951 13f79535-47bb-0310-9956-ffa450edef68
* Change semantics of ap_child_table somewhat. Instead of checking for aManoj Kasichainula2000-07-301-6/+2
| | | | | | | | | dead process with status == SERVER_DEAD, check with pid == 0. This makes somewhat more sense conceptually, and also matches the behavior of MPMs that use a shmem scoreboard to track children. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85950 13f79535-47bb-0310-9956-ffa450edef68
* Add a new MPM. Currently this is almost an exact copy of the dexter MPM.Ryan Bloom2000-07-271-1/+1
| | | | | | | | | In time, this will be the MPM that allows each child process to have a unique user id. I need a place to work and keep track of my changes. Don't expect this to work until next week sometime. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85902 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup the MPM #defines. Each MPM #defines a unique name that identifiesRyan Bloom2000-07-271-2/+2
| | | | | | | | it to the system. That name should be of the format NAME_MPM where name is something like DEXTER, MPMT_PTHREAD, SPMT_OS2, etc. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85901 13f79535-47bb-0310-9956-ffa450edef68
* Fix some build issues for dexter:Jeff Trawick2000-07-261-1/+1
| | | | | | | | | | | | | | | | . dexter/scoreboard.c needed apr_strings.h to get the right function prototypes . main/mpm_common.c needed to recognize that we were building for dexter; otherwise, no ap_reclaim_child_processes() was compiled and linking failed (It would be nice to standardize on which preprocessor symbols are checked for... mpmname_MPM seems nice enough. Didn't the check for symbol mpmname (no "_MPM") come with mpmt.c?) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85899 13f79535-47bb-0310-9956-ffa450edef68
* Get ap_socket_disable_nagle() working again.Jeff Trawick2000-07-261-1/+4
| | | | | | | | Submitted by: Greg Ames Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85894 13f79535-47bb-0310-9956-ffa450edef68
* Add APR_EOL_STR for a platform specific text delimiter, provided byWilliam A. Rowe Jr2000-07-251-1/+1
| | | | | | | | | | | | | | | | | apr.h (defined in apr.h.in and apr.hw). This is needed -only- in APR created files (true raw files) such as logs. It is not required in any splat to screen (stderr/stdout) formatting, nor any html markup. Some other modules slipped through in the prior apr_strings.h commit. Sorry 'bout that. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85878 13f79535-47bb-0310-9956-ffa450edef68
* #ifdef APR_HAS_OTHER_CHILD to #if APR_HAS_OTHER_CHILD. Not tested.Bill Stoddard2000-07-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85821 13f79535-47bb-0310-9956-ffa450edef68
* Remove all pthreads calls from the mpmt MPM prefork emulation. This makesRyan Bloom2000-07-111-1/+1
| | | | | | | | | the mpmt MPM look almost exactly like the original prefork MPM. Basically, all that's left is re-naming the defined directives so they work with 1.3 config files. That will come later. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85819 13f79535-47bb-0310-9956-ffa450edef68
* Move sock_disable_nagle to mpm_common.c. Rename it to ap_sock_disable_nagle.Ryan Bloom2000-07-111-0/+20
| | | | | | | Again, I tried to modify all MPMs that are currently using this code. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85811 13f79535-47bb-0310-9956-ffa450edef68
* Move process_child_status to mpm_common.c. This requires re-naming itRyan Bloom2000-07-101-0/+52
| | | | | | | | | to ap_process_child_status and opening up ap_coredump_dir. I have modified all of the MPMs that I saw using this function to work with this patch. Sorry if I broke anybody. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85808 13f79535-47bb-0310-9956-ffa450edef68
* Fix mpm_common for use with the real prefork MPM. This was broken whenRyan Bloom2000-07-101-1/+1
| | | | | | | | mpmt was added. This change can be removed when the MPM stuff calms down a bit and either mpmt or three separate MPMs are chosen. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85799 13f79535-47bb-0310-9956-ffa450edef68
* Initial version of the mpmt MPM. This MPM can emulate dexter, mpmt_pthread,Ryan Bloom2000-07-071-2/+2
| | | | | | | | | | | | | and prefork. This basically just combines a lot of common code. This builds and serves pages in all three modes, but I don't think killing the server works in any of them. The configuration system hasn't changed at all, so using --with-mpm=(prefork|dexter|mpmt_pthread) all work. My goal is to remove the three separate MPMs in a few days, and then work on merging one of the BeOS and the OS/2 MPMs into this as well. :-) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85788 13f79535-47bb-0310-9956-ffa450edef68
* Add the EXTRA_LIBS to get apache building on BONE again and now thatDavid Reid2000-06-221-3/+0
| | | | | | | we're using ap_sleep remove the need for sys/socket.h in mpm_common.c git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85658 13f79535-47bb-0310-9956-ffa450edef68
* Remove a few unnecessary calls to select. These calls used to be made soRyan Bloom2000-06-221-8/+2
| | | | | | | | that we would sleep for a specified number of microseconds. APR provides a function ap_sleep that does this for us. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85657 13f79535-47bb-0310-9956-ffa450edef68
* Cut free mpm_common.c from ap_max_daemons_limit as a variable. Now weDavid Reid2000-06-221-2/+3
| | | | | | | | get the value from the MPM and thus free the MPM to use any variable name they like. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85655 13f79535-47bb-0310-9956-ffa450edef68
* Small change in an effort to get restarts working correctly on BeOS.David Reid2000-06-221-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85653 13f79535-47bb-0310-9956-ffa450edef68
* Update mpm_common to work with the latest BeOS version and startDavid Reid2000-06-191-1/+4
| | | | | | | adding support for a new BeOS MPM that I'll commit in a few days. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85621 13f79535-47bb-0310-9956-ffa450edef68
* Add sys/time.h to mpm_common to include define of timeval.David Reid2000-06-141-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85569 13f79535-47bb-0310-9956-ffa450edef68
* Remove waitpid from the config checks and all calls to waitpid from theRyan Bloom2000-06-101-4/+7
| | | | | | | server. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85488 13f79535-47bb-0310-9956-ffa450edef68
* Add support for the BeOS mpm. Also change some things to make it easierDavid Reid2000-06-011-6/+8
| | | | | | | for future additions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85372 13f79535-47bb-0310-9956-ffa450edef68
* Only compile ap_reclaim_child_processes() if a CHILD_INFO_TABLE is known.Brian Havard2000-05-281-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85333 13f79535-47bb-0310-9956-ffa450edef68
* Fix a memory leak with ap_wait_or_timeout.Ryan Bloom2000-05-241-6/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85286 13f79535-47bb-0310-9956-ffa450edef68
* use the correct size for 'ret'Greg Stein2000-05-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85284 13f79535-47bb-0310-9956-ffa450edef68
* Fix a small bug/warning when compiling with use-maintiner-mode relatedRyan Bloom2000-05-241-1/+1
| | | | | | | to the ap_proc_t change. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85283 13f79535-47bb-0310-9956-ffa450edef68
* Convert ap_proc_t to a complete type. This lets us access the pid directly.Ryan Bloom2000-05-231-2/+2
| | | | | | | | Only the prefork MPM has been ported so far, the rest of the Unix MPM's are coming later today. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85279 13f79535-47bb-0310-9956-ffa450edef68
* Temporary fix for misuse of int instead of pid_t.Roy T. Fielding2000-05-191-10/+13
| | | | | | | Also include mpm_common.h to pick up the common prototypes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85257 13f79535-47bb-0310-9956-ffa450edef68
* ap_wait_or_timeout() can't be static since it is called fromJeff Trawick2000-05-191-1/+1
| | | | | | | | | | dexter.c, prefork.c, and mpmt_pthread.c. (Yes, we still need a function prototype somewhere, but at least we can link properly now.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85252 13f79535-47bb-0310-9956-ffa450edef68
* Move wait_or_timeout from the MPM's into the new mpm_common.c file. IRyan Bloom2000-05-191-0/+37
| | | | | | | | also renamed wait_or_timeout to ap_wait_or_timeout for namespace protection. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85250 13f79535-47bb-0310-9956-ffa450edef68
* First function removed from Unix MPM's and moved to a common file. ThisRyan Bloom2000-05-191-0/+170
work is not anywhere near finished, but the cleanup has begun at least. Had to make a couple of variables non-static, so a name change was required since they are now viewable from outside the library. The advantage to this is code that is much easier to maintain into the future, because it is duplicated less often. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85249 13f79535-47bb-0310-9956-ffa450edef68