summaryrefslogtreecommitdiffstats
path: root/server/log.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Modify ap_open_logs (an internal function) to follow the hook open_logsWilliam A. Rowe Jr2002-09-161-10/+18
| | | | | | | | | argument schema so it can be directly invoked by the hook handler. Also clean up the open_logs processing to return an error rather than simply exit()ing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96829 13f79535-47bb-0310-9956-ffa450edef68
* Continue the Bill Rowe apr_size_t crusade.Victor J. Orlikowski2002-07-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95993 13f79535-47bb-0310-9956-ffa450edef68
* Well the wrappers work out well... nice to be able to put off committingWilliam A. Rowe Jr2002-06-091-1/+1
| | | | | | | these API changes until the evening ;) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95587 13f79535-47bb-0310-9956-ffa450edef68
* Clean up new compiler emit noiseWilliam A. Rowe Jr2002-05-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95455 13f79535-47bb-0310-9956-ffa450edef68
* Simplify ap_read_pid and make it more portable.Justin Erenkrantz2002-05-291-15/+13
| | | | | | | | | - Switch to using apr_file_read_full() - Stop checking for \n (non-portable) - Error if we read the entire buffer or the first digit isn't a number git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95338 13f79535-47bb-0310-9956-ffa450edef68
* add ap_log_pid() for reading an Apache pid fileJeff Trawick2002-05-231-0/+49
| | | | | | | Submitted by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95235 13f79535-47bb-0310-9956-ffa450edef68
* stop using APLOG_NOERRNO in calls to ap_log_?error()Jeff Trawick2002-05-171-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95149 13f79535-47bb-0310-9956-ffa450edef68
* ignore APLOG_NOERRNO; note that it is deprecatedJeff Trawick2002-05-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95148 13f79535-47bb-0310-9956-ffa450edef68
* Added the APLOG_TOCLIENT flag to ap_log_rerror() toBill Stoddard2002-04-221-5/+5
| | | | | | | | | | | | | explicitly tell the server that warning messages should be sent to the client in addition to being recorded in the error log. Prior to this change, ap_log_rerror() always sent warning messages to the client. In one case, a faulty CGI script caused the server to send a warning message to the client that contained the full path to the CGI script. This could be considered a minor security exposure. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94744 13f79535-47bb-0310-9956-ffa450edef68
* Fix 'control reaches end of non-void function' warningJustin Erenkrantz2002-04-181-1/+1
| | | | | | | | Submitted by: Ben Collins-Sussman <sussman@collab.net> Tweaked by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94695 13f79535-47bb-0310-9956-ffa450edef68
* Introduced -E startup_logfile_name option to httpd to allow adminsWilliam A. Rowe Jr2002-04-171-0/+33
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94681 13f79535-47bb-0310-9956-ffa450edef68
* Spell out the merged log name, if we succeeded in merging the pathWilliam A. Rowe Jr2002-03-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93986 13f79535-47bb-0310-9956-ffa450edef68
* get the prototype for ap_recent_ctime()Jeff Trawick2002-03-171-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93980 13f79535-47bb-0310-9956-ffa450edef68
* Use the "recent time" cache to optimize timestamp generation forBrian Pane2002-03-171-1/+1
| | | | | | | | | | | | | the httpd error log Background: According to some profile data that we collected on Solaris, half the run time of ap_log_rerror() was spent in localtime(3). With this change, the recent-time cache ensures that the error logger won't cause more than one localtime() call per second, no matter how high the error rate is. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93977 13f79535-47bb-0310-9956-ffa450edef68
* Eliminate potential ap_server_root_relative segfaults, with the inputWilliam A. Rowe Jr2002-03-161-9/+22
| | | | | | | | | | | of Jeff Trawick's style changes to the first patches. Doesn't include the fixes to ssl [more complex], and we won't trap errors that involve ap_serverroot, since we presume that was normalized on the way in. Therefore, testing ap_server_root_relative(DEFAULT_FOO) cases should never become necessary. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93965 13f79535-47bb-0310-9956-ffa450edef68
* deal with the rename of kill_after_timeout to APR_KILL_AFTER_TIMEOUTJeff Trawick2002-03-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93940 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
* Sander's Stylistic SubmissionIan Holsman2002-03-051-49/+59
| | | | | | | | | | | (de-tab) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93717 13f79535-47bb-0310-9956-ffa450edef68
* Whoh boy that's rough... We sometimes like to answer SIGHUP in theWilliam A. Rowe Jr2002-02-271-8/+0
| | | | | | | | | | parent process, don't we? This -was- post-fork() in 1.3, but with the massive restructuring, we inadvertantly now whack the parent process. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93587 13f79535-47bb-0310-9956-ffa450edef68
* This code seriously misassumed (and may yet) that stderr was a valid file.William A. Rowe Jr2002-02-121-3/+5
| | | | | | | | It also has some bogus non-apr code that probably does great evil to win32 services. This must be bumped into .32, code review is incomplete still. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93368 13f79535-47bb-0310-9956-ffa450edef68
* Removed the #ifdef NETWARE to allow the standard abort() function toBradley Nicholes2002-02-061-2/+0
| | | | | | | be called. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93314 13f79535-47bb-0310-9956-ffa450edef68
* BS. This isn't an assert. This is a friggin developer's black hole.William A. Rowe Jr2002-02-061-4/+6
| | | | | | | | | Suggesion: Netware needs to implement the appropriate abort() style fn. If there is none on Netware, this is non-portable, undebuggable, and will be yanked by tommorow evening. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93277 13f79535-47bb-0310-9956-ffa450edef68
* Bring apache in line with the new apr_file_dup2() parameter type.Aaron Bannert2002-01-241-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92992 13f79535-47bb-0310-9956-ffa450edef68
* Allow the user to get detailed debugging information without a fullWilliam A. Rowe Jr2002-01-171-1/+3
| | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92891 13f79535-47bb-0310-9956-ffa450edef68
* Subset of another, have piped_log_cleanup_for_exec handleWilliam A. Rowe Jr2002-01-171-8/+7
| | | | | | | the dirtywork common to piped_log_cleanup git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92890 13f79535-47bb-0310-9956-ffa450edef68
* This brings apache back in line with apr following the additionDavid Reid2002-01-111-2/+2
| | | | | | | | | | | of apr_file_dup2. Until Win32 and OS/2 have the function added this will break their builds, but Will Rowe has said he'll do it this morning and asked for the patch to apr to go in :) Go Will! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92824 13f79535-47bb-0310-9956-ffa450edef68
* Style and formatting changes only. Removed tabs, reduced long lines,Aaron Bannert2001-12-181-220/+239
| | | | | | | | aligned parameters, added braces around some single-statement basic blocks. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92518 13f79535-47bb-0310-9956-ffa450edef68
* Added NETWARE to the #ifdef listBradley Nicholes2001-10-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91691 13f79535-47bb-0310-9956-ffa450edef68
* Clean up the string passed to the error log hook. This removes the date,Ryan Bloom2001-10-091-2/+3
| | | | | | | | | time, error level, etc strings. The only information in the string is the actual error. Submitted by: Jon Travis <jtravis@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91373 13f79535-47bb-0310-9956-ffa450edef68
* Switch back to SIGUSR1 for graceful restarts on all platforms thatJustin Erenkrantz2001-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | support it. This defines a symbol called AP_SIG_GRACEFUL in ap_config_auto.h which will have the appropriate signal value. All direct references to SIGWINCH have been replaced with AP_SIG_GRACEFUL. On Linux 2.0, use SIGWINCH instead since SIGUSR1 is used by glibc 2.0's user-space threading library to control threads. All later versions of Linux/glibc don't have this problem. (Not to mention the security holes in older Linux versions which make it unsuitable for use as a web server.) If your platform doesn't have SIGUSR1, use the appropriate mojo in configure to define what your graceful restart signal should be. In theory, a configure switch could be added to allow the admin to specify the appropriate signal that should be used. This is left as an exercise to the reader for now. The docs need to be updated. Since the signal is now configurable, just saying SIGUSR1 for graceful restart isn't completely true. Also, the apachectl functionality needs to be moved into httpd - this is what Win32 does and it makes us consistent across platforms. Roy issued a veto against use of SIGWINCH by default, so this should resolve that veto. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91076 13f79535-47bb-0310-9956-ffa450edef68
* httpd.exp and lots of other export files are generated based on theVictor J. Orlikowski2001-07-301-1/+1
| | | | | | | | | | | AP[RU]_DECLARE macros. This commit gets mod_cgid working again as a DSO on AIX. However, this brings up the need to look for any functions that are available as part of the API, and AP[RU]_DECLAREing them, so things don't blow up in DSOs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89790 13f79535-47bb-0310-9956-ffa450edef68
* Missed one, all should have recovered from APR_INHERIT now.William A. Rowe Jr2001-07-181-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89602 13f79535-47bb-0310-9956-ffa450edef68
* Obvious files that need inheritance, correct me if I'm wrong.William A. Rowe Jr2001-07-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89561 13f79535-47bb-0310-9956-ffa450edef68
* Add a new request phase, for allowing management modules to forwardRyan Bloom2001-06-071-0/+12
| | | | | | | error logs to their management agents. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89281 13f79535-47bb-0310-9956-ffa450edef68
* Fix a segfault in apr_proc_other_child_unregister. Jeff recently madeBill Stoddard2001-05-171-1/+0
| | | | | | | | | | | | | | | a change in APR otherchild.c to unregister all OC registrations as part of pool cleanup. This means that we must NOT explicitly call apr_proc_other_child_unregister out of other pool clean-up routines. In this case, the OC cleanup was being called first then the piped_log_cleanup was being called which called apr_proc_other_child_unregister. We could fix this by detecting the case when there are no more OCs registered in apr_proc_other_child_unregister but that might just mask other problems we need to fix anyway. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89133 13f79535-47bb-0310-9956-ffa450edef68
* Remove a needless assignment.Victor J. Orlikowski2001-04-111-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88802 13f79535-47bb-0310-9956-ffa450edef68
* Missed one...Victor J. Orlikowski2001-04-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88792 13f79535-47bb-0310-9956-ffa450edef68
* *Sigh*. Pointless repetition of calculations. It bothers me. Even ifVictor J. Orlikowski2001-04-101-9/+10
| | | | | | | it is simple bitwise AND. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88790 13f79535-47bb-0310-9956-ffa450edef68
* Hmmm... this made things easier for me to read a while back, perhapsWilliam A. Rowe Jr2001-04-031-1/+1
| | | | | | | someone else may appreciate git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88687 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
* *) include "apr_signal.h" when neededGreg Stein2001-02-111-0/+1
| | | | | | | *) some other minor include tweaks git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88081 13f79535-47bb-0310-9956-ffa450edef68
* Clean up some of the includes:Greg Stein2001-02-101-10/+8
| | | | | | | | | | - 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88060 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-40/+40
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
* Use the appropriate APR_FINFO_flags for the apr_stat/lstat/getfileinfoWilliam A. Rowe Jr2001-01-271-1/+1
| | | | | | | | calls to avoid ownership and permissions on Win32 when they are not required, and until they are implemented. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87873 13f79535-47bb-0310-9956-ffa450edef68
* The changes required for the APR_FINFO_wanted argument toWilliam A. Rowe Jr2001-01-201-1/+2
| | | | | | | | | | | apr_stat/lstat/getfileinfo. These are -NOT- optimal, they are simply the required changes to get the server working. The size of the patch is a warning about how we need to really look at what we are trying to accomplish with all of these stat/lstat calls. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87760 13f79535-47bb-0310-9956-ffa450edef68
* Some missing exportsWilliam A. Rowe Jr2001-01-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87725 13f79535-47bb-0310-9956-ffa450edef68
* get rid of some bogus uses of perror()Jeff Trawick2001-01-091-17/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87620 13f79535-47bb-0310-9956-ffa450edef68
* Fix message when the error log file can't be opened.Brian Havard2001-01-081-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87610 13f79535-47bb-0310-9956-ffa450edef68
* Set up stderr logging explictly early in initialization so that a pool isJeff Trawick2001-01-041-1/+8
| | | | | | | available for creating the APR representation of stderr. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87583 13f79535-47bb-0310-9956-ffa450edef68
* We have a pool in this function, and log_error_core needs a pool in orderRyan Bloom2001-01-011-2/+2
| | | | | | | | to open stderr successfully. By using ap_log_perror, we can pass a valid pool down to log_error_core git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87561 13f79535-47bb-0310-9956-ffa450edef68