Glenn Strauss
6c1d57a29a
[core] store log filename in (log_error_st *)
2020-07-08 19:54:28 -04:00
Glenn Strauss
3e8cdb2e54
[core] inline buffer in log_error_st errh
2020-07-08 19:54:28 -04:00
Glenn Strauss
c8cd7cf49b
[multiple] extern log_epoch_secs
...
replace srv->cur_ts
2020-07-08 19:54:28 -04:00
Glenn Strauss
409bba80b1
[multiple] reduce direct use of srv->cur_ts
2020-07-08 19:54:28 -04:00
Glenn Strauss
68c58c162b
[core] log_error_multiline_buffer()
...
replaces log_error_write_multiline_buffer()
2020-07-08 19:54:28 -04:00
Glenn Strauss
010c28949c
[multiple] prefer (connection *) to (srv *)
...
convert all log_error_write() to log_error() and pass (log_error_st *)
use con->errh in preference to srv->errh (even though currently same)
avoid passing (server *) when previously used only for logging (errh)
2020-07-08 19:54:28 -04:00
Glenn Strauss
4183e723ce
[core] log_error, log_perror using printf-like fmt
2019-04-20 02:10:28 -04:00
Glenn Strauss
cbad7517c8
[core] struct log_error_st for error logging
2019-04-20 02:10:28 -04:00
Glenn Strauss
e0a35b75c0
[core] mark log_error_write*() funcs cold
2019-02-09 00:06:10 -05:00
Glenn Strauss
04d76e7afd
[core] some header cleanup
...
provide standard types in first.h instead of base.h
provide lighttpd types in base_decls.h instead of settings.h
reduce headers exposed by headers for core data structures
do not expose <pcre.h> or <stdlib.h> in headers
move stat_cache_entry to stat_cache.h
reduce use of "server.h" and "base.h" in headers
2018-04-08 22:22:23 -04:00
Glenn Strauss
3c8afd194c
[core] base_decls.h to quiet compiler warnings
...
quiet compiler warning for -Wtypedef-redefinition
(redefinition of typedef is a C11 feature)
2017-07-30 23:45:01 -04:00
Glenn Strauss
9e75b81982
[core] reduce exposure of unistd.h, other includes
...
reduce exposure of unistd.h, and some other include cleanup
2017-07-15 22:42:15 -04:00
Glenn Strauss
31011adda9
[core] mv log_error_{open,cycle.close} to server.c
2017-07-15 22:42:15 -04:00
Glenn Strauss
a9970fec23
[core] consolidate fork()/execve() code ( #1393 )
...
(refactoring work to address issue #1393 )
x-ref:
"access log pipe writer should restart child process if it exits"
https://redmine.lighttpd.net/issues/1393
2017-07-15 22:42:15 -04:00
Glenn Strauss
4d920466f7
[autobuild] clock_gettime() -lrt with glibc < 2.17
...
clock_gettime() needs -lrt with glibc < 2.17,
and possibly other platforms
On systems without clock_gettime (-cough- Mac OSX -cough-),
use gettimeofday() (deprecated in POSIX.1-2008) which is slightly
lower precision, but reasonably fast in execution. References:
http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x
http://stackoverflow.com/questions/11680461/monotonic-clock-on-osx
https://discussions.apple.com/thread/6023936?tstart=0
2016-07-18 23:24:42 -04:00
Glenn Strauss
8abd06a7ff
consistent inclusion of config.h at top of files ( fixes #2073 )
...
From: Glenn Strauss <gstrauss@gluelogic.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3113 152afb58-edef-0310-8abb-c4023f1b3aa9
2016-03-19 15:14:35 +00:00
Stefan Bühler
0508bf674e
fix some unchecked return value warnings
...
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3015 152afb58-edef-0310-8abb-c4023f1b3aa9
2015-08-22 16:01:08 +00:00
Stefan Bühler
07dd0bd0a5
add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG ( fixes #2546 )
...
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2948 152afb58-edef-0310-8abb-c4023f1b3aa9
2014-02-16 13:08:20 +00:00
Stefan Bühler
0e48ef6acb
[mod_fastcgi,log] support multi line logging ( fixes #2252 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2866 152afb58-edef-0310-8abb-c4023f1b3aa9
2013-03-25 17:22:32 +00:00
Stefan Bühler
1527160c69
Add support for pipe logging for server.errorlog ( fixes #296 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2466 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-10 10:50:51 +00:00
Stefan Bühler
93e7167f84
Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places ( #624 )
...
- as stderr gets redirected to /dev/null before exec in childs, we cannot
write to the log afterwards, so disabled that log messages too.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2163 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:39 +00:00
Marcus Rückert
8cd1471cb3
- white space cleanup part 2 this time 1.4 ;)
...
i hope it helps with merging stuff back to 1.5
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1371 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 13:26:23 +00:00
Jan Kneschke
bcdc6a3bbc
moved everything below trunk/ and added branches/ and tags/
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-20 14:27:00 +00:00