Stefan Bühler
47bd40368d
mod_rrdtool: fix creating file if it doesn't exist ( #1788 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2686 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-31 09:54:13 +00:00
Stefan Bühler
22e8b456a9
Fix header inclusion order, always include "config.h" before any system header
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2624 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 14:31:42 +00:00
Stefan Bühler
4df22f2a32
Fix issues found with clang analyzer
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2594 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-21 20:35:27 +00:00
Stefan Bühler
fbdb305f8a
Add server.breakagelog, a "special" stderr ( fixes #1863 )
...
* The breakage-log simply replaces stderr (the old stderr is moved away if needed for errorlog),
and stderr isn't closed after forking.
It defaults to stderr if started with -n (no daemonize), otherwise it defaults to /dev/null.
It is _not_ reopened in log_error_cycle, as there may be many long running childs which have it
still open anyway. Use a pipe-logger with cycle-support if you need it.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2550 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-21 17:25:39 +00:00
Stefan Bühler
7fe794e1a2
Fix mixed declarations and code in mod_rrdtool
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2427 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-05 21:51:00 +00:00
Elan Ruusamäe
61332595cb
- adjust identing after patch
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2419 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-03-11 21:45:49 +00:00
Elan Ruusamäe
0e84d4d4f5
- Create rrd file for empty rrdfile in mod_rrdtool ( #1788 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2418 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-03-11 21:45:17 +00:00
Stefan Bühler
63f785a2f8
Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2414 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-03-07 21:05:37 +00:00
Stefan Bühler
fbaceca37c
Fix useless redirection of stderr in mod_rrdtool, as it gets redirected to /dev/null later. ( fixes #1922 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2407 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-03-03 10:41:06 +00:00
Stefan Bühler
515d800f7c
Fix rrd error after graceful restart ( fixes #419 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2401 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-19 13:14:02 +00:00
Stefan Bühler
a15e1ce4bb
Handle EINTR in mod_rrdtool ( fixes #604 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2400 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-19 13:13:58 +00:00
Stefan Bühler
21c5377d3f
Use FD_CLOEXEC if possible ( fixes #1821 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2363 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-12-07 15:22:49 +00:00
Stefan Bühler
52861d77df
Replace buffer_{append,copy}_string with the _len variant where possible ( #1732 , thx crypt)
...
Replace BUFFER_{APPEND,COPY}_STRING_CONST with _len(b, CONST_STRL_LEN(x))
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2250 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 19:38:32 +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
35d3c10d81
on SEGFAULT tell were we where
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@603 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-21 23:09:43 +00:00
Jan Kneschke
bac9212c8f
fixed possible uninit variables of the config-parser fails (merged [183])
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@551 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-16 13:07:46 +00:00
Jan Kneschke
c8408d015c
removed setup_connection (merged [295])
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@512 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-08 10:27:07 +00:00
Jan Kneschke
adcc83d26f
cleaned up the errorlog writing, default is now stderr, syslog is requested explicitly
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@475 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-26 08:26:28 +00:00
Jan Kneschke
dd72afb2d9
close stderr or redirect it to our logfile
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@448 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-15 14:32:57 +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