You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd1.4/src
Kyle J. McKay c92b1762ba [core] truncate pidfile on exit (fixes #2695)
If the server has changed its uid or is running in a chroot
it may be unable to remove the pid file when it exits.

However, if it holds on to an open handle to the pid file
that has write permission, it will be able to truncate the
pid file to 0 bytes in length.

Most monitoring software recognizes a 0-length pid file
as indicating there is no process running.

Therefore always attempt to truncate the pid file before
trying to remove it so that it's not left containing the
pid of a process that is no longer running.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3112 152afb58-edef-0310-8abb-c4023f1b3aa9
7 years ago
..
CMakeLists.txt use libmemcached instead of deprecated libmemcache 8 years ago
Makefile.am use libmemcached instead of deprecated libmemcache 8 years ago
SConscript use libmemcached instead of deprecated libmemcache 8 years ago
array.c [core] provide array_extract_element and use it 7 years ago
array.h [core] provide array_extract_element and use it 7 years ago
base.h [core] fix conditional cache handling 7 years ago
base64.c [core] refactor base64 functions into separate file 8 years ago
base64.h [core] refactor base64 functions into separate file 8 years ago
buffer.c [buffer] use explicit integer promotion to make the code more readable 7 years ago
buffer.h [mod_auth] implement and use safe_memclear, using memset_s or explicit_bzero if available 8 years ago
chunk.c add force_assert for more allocation results 7 years ago
chunk.h [core] revert increase of temp file size back to 1MB, provide a configure option "server.upload-temp-file-size" instead (fixes #2680) 8 years ago
config.h.cmake use libmemcached instead of deprecated libmemcache 8 years ago
configfile-glue.c [core] fix conditional cache handling 7 years ago
configfile.c [core] improve array API to prevent theoretical memory leaks 7 years ago
configfile.h [core] improve conditional enabling (thx Gwenlliana, #2598) 7 years ago
configparser.y [core] configparser: error on duplicate keys in array merge (fixes #2685) 7 years ago
connections-glue.c Fix some problems with more strict compilers (#1923) 14 years ago
connections.c [core] fix request_start in keep-alive requests to mark time when received first byte (fixes #2412) 7 years ago
connections.h moved everything below trunk/ and added branches/ and tags/ 19 years ago
crc32.c [crc32] fix method signature (const pointer) 8 years ago
crc32.h [crc32] fix method signature (const pointer) 8 years ago
data_array.c add force_assert for more allocation results 7 years ago
data_config.c [core] fix conditional cache handling 7 years ago
data_count.c add force_assert for more allocation results 7 years ago
data_fastcgi.c add force_assert for more allocation results 7 years ago
data_integer.c add force_assert for more allocation results 7 years ago
data_string.c add force_assert for more allocation results 7 years ago
etag.c check pointer before usage in new etag compare 8 years ago
etag.h parse If-None-Match for ETag validation (fixes #2578) 8 years ago
fastcgi.h - white space cleanup part 2 this time 1.4 ;) 17 years ago
fdevent.c add force_assert for more allocation results 7 years ago
fdevent.h [bitset] unused -> remove 8 years ago
fdevent_freebsd_kqueue.c add force_assert for more allocation results 7 years ago
fdevent_libev.c add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 9 years ago
fdevent_linux_sysepoll.c add force_assert for more allocation results 7 years ago
fdevent_poll.c add force_assert for more allocation results 7 years ago
fdevent_select.c add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546) 9 years ago
fdevent_solaris_devpoll.c add force_assert for more allocation results 7 years ago
fdevent_solaris_port.c add force_assert for more allocation results 7 years ago
http-header-glue.c [core] encode path with ENCODING_REL_URI in redirect to directory (fixes #2661, thx gstrauss) 8 years ago
http_auth.c [core] refactor base64 functions into separate file 8 years ago
http_auth.h [mod_auth] some cleanup, only search for matching auth.require path once 10 years ago
http_chunk.c rename buffer_append_long_hex to buffer_append_uint_hex 8 years ago
http_chunk.h fix buffer, chunk and http_chunk API 8 years ago
inet_ntop_cache.c Fix header inclusion order, always include "config.h" before any system header 14 years ago
inet_ntop_cache.h moved everything below trunk/ and added branches/ and tags/ 19 years ago
joblist.c add force_assert for more allocation results 7 years ago
joblist.h moved everything below trunk/ and added branches/ and tags/ 19 years ago
keyvalue.c cleanup dead keyvalue code 7 years ago
keyvalue.h cleanup dead keyvalue code 7 years ago
lemon.c fix/silence bugs reported by ccc-analyzer (clang) 10 years ago
lempar.c Use NULL instead of 0 where pointers are expected. 11 years ago
lighttpd-angel.c [lighttpd-angel] Remove unused variable. 11 years ago
log.c fix some unchecked return value warnings 8 years ago
log.h fix some unchecked return value warnings 8 years ago
md5.c [md5] Fix non-ANSI function definitions. 11 years ago
md5.h [ssl/md5] prefix our own md5 implementation with li_ so it doesn't conflict with the openssl one (fixes #2269) 12 years ago
mod_access.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_accesslog.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_alias.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_auth.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_auth.h moved everything below trunk/ and added branches/ and tags/ 19 years ago
mod_cgi.c [mod_cgi] kill CGI if fail to write request body 7 years ago
mod_cml.c use libmemcached instead of deprecated libmemcache 8 years ago
mod_cml.h use libmemcached instead of deprecated libmemcache 8 years ago
mod_cml_funcs.c use libmemcached instead of deprecated libmemcache 8 years ago
mod_cml_funcs.h Fix header inclusion order, always include "config.h" before any system header 14 years ago
mod_cml_lua.c use libmemcached instead of deprecated libmemcache 8 years ago
mod_compress.c [mod_compress] case-insensitive content-codings (fixes #2645) 7 years ago
mod_dirlisting.c [mod_dirlisting] dir-listing.hide-dotfiles = "enabled" by default (fixes #1081) 7 years ago
mod_evasive.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_evhost.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_expire.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_extforward.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_fastcgi.c [core] improve array API to prevent theoretical memory leaks 7 years ago
mod_flv_streaming.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_indexfile.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_magnet.c [mod_magnet] define lua_pushglobaltable (for lua5.1) and use it (fixes #2719) 7 years ago
mod_magnet_cache.c add handling for lua 5.2 and 5.3 (fixes #2674) 8 years ago
mod_magnet_cache.h lua_State has to be put into the #ifdef too 17 years ago
mod_mysql_vhost.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_proxy.c [mod_proxy] use case-insensitive comparision to filter headers, send Connection: Close to backend (fixes #421) 7 years ago
mod_redirect.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_rewrite.c [mod_rewrite] fix return type of process_rewrite_rules 7 years ago
mod_rrdtool.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_scgi.c [mod_fastcgi,mod_scgi] fix leaking file-descriptor when backend spawning failed (reported by Fortify Open Review Project) 7 years ago
mod_secdownload.c [mod_secdownload] fix buffer overflow in secdl_verify_mac (reported by Fortify Open Review Project) 7 years ago
mod_setenv.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_simple_vhost.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_skeleton.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_ssi.c [mod_ssi] enhance support for ssi vars 8 years ago
mod_ssi.h Add ssi.content-type option (default text/html, fixes #615) 14 years ago
mod_ssi_expr.c [mod_ssi] enhance support for ssi vars 8 years ago
mod_ssi_expr.h [mod_ssi] fix "ssi_val_init" prototype 10 years ago
mod_ssi_exprparser.y Fix header inclusion order, always include "config.h" before any system header 14 years ago
mod_staticfile.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_status.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_trigger_b4_dl.c use libmemcached instead of deprecated libmemcache 8 years ago
mod_uploadprogress.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_userdir.c [mod_secdownload] add required algorithm option; old behaviour available as "md5", new options "hmac-sha1" and "hmac-sha256" 8 years ago
mod_usertrack.c [config] check config option scope; warn if server option is given in conditional 8 years ago
mod_webdav.c [config] check config option scope; warn if server option is given in conditional 8 years ago
network.c [ssl] support disabling ssl.verifyclient.activate in SNI callback (fixes #2531) 7 years ago
network.h Limit amount of bytes we send in one go; fixes stalling in one connection and timeouts on slow systems. 12 years ago
network_backends.h [network] add darwin-sendfile backend (fixes #2687) 8 years ago
network_darwin_sendfile.c [network] add darwin-sendfile backend (fixes #2687) 8 years ago
network_freebsd_sendfile.c rewrite network (write) backends 8 years ago
network_linux_sendfile.c rewrite network (write) backends 8 years ago
network_openssl.c rewrite network (write) backends 8 years ago
network_solaris_sendfilev.c rewrite network (write) backends 8 years ago
network_write.c rewrite network (write) backends 8 years ago
network_write_mmap.c [mmap] handle SIGBUS in network; those get triggered if the file gets smaller during reading 8 years ago
network_write_no_mmap.c rewrite network (write) backends 8 years ago
network_writev.c rewrite network (write) backends 8 years ago
plugin.c [plugins] don't include dlfcn.h if not needed (fixes #2548) 7 years ago
plugin.h [core] improve conditional enabling (thx Gwenlliana, #2598) 7 years ago
proc_open.c Use buffer API to read and modify "used" member 8 years ago
proc_open.h Fix leaving zombie process with include_shell (#1777) 15 years ago
request.c Use buffer API to read and modify "used" member 8 years ago
request.h moved everything below trunk/ and added branches/ and tags/ 19 years ago
response.c [core] improve conditional enabling (thx Gwenlliana, #2598) 7 years ago
response.h Fix header inclusion order, always include "config.h" before any system header 14 years ago
safe_memclear.c [core] fix memset_s call (fixes #2698) 8 years ago
safe_memclear.h [mod_auth] implement and use safe_memclear, using memset_s or explicit_bzero if available 8 years ago
server.c [core] truncate pidfile on exit (fixes #2695) 7 years ago
server.h remove unused stuff from server.h 8 years ago
settings.h [mod_auth] implement and use safe_memclear, using memset_s or explicit_bzero if available 8 years ago
splaytree.c Fix header inclusion order, always include "config.h" before any system header 14 years ago
splaytree.h - white space cleanup part 2 this time 1.4 ;) 17 years ago
stat_cache.c add force_assert for more allocation results 7 years ago
stat_cache.h cleanup fdevent code, removed linux-rtsig handler, replaced some fprintf calls 13 years ago
status_counter.c Fix header inclusion order, always include "config.h" before any system header 14 years ago
status_counter.h Fix header inclusion order, always include "config.h" before any system header 14 years ago
stream.c [configfile] fix reading uninitialized variable (found by Willian B.) 8 years ago
stream.h moved everything below trunk/ and added branches/ and tags/ 19 years ago
sys-mmap.h rewrite network (write) backends 8 years ago
sys-socket.h ECONNABORTED is not known on cygwin (fixes #863) 16 years ago
version.h Fix header inclusion order, always include "config.h" before any system header 14 years ago