daemon: detect running from the source tree, valgrind commandline option
authorKrisztian Litkey <kli@iki.fi>
Thu, 29 Aug 2013 22:23:50 +0000 (01:23 +0300)
committerKrisztian Litkey <kli@iki.fi>
Fri, 10 Jan 2014 15:06:54 +0000 (17:06 +0200)
commit9d28823461f20c657c0abe4e707d0f126c8a86e5
tree75c70dfdbf5a52568b0dff302f12c6549896f70d
parent249c105c9a5f01bc7fbc5addbe6350e401ab4798
daemon: detect running from the source tree, valgrind commandline option

The daemon now tries to detect if it is being run from the source
tree, and change its confguration file and plugin directory defaults
accordingly.

Additionally, the daemon now supports automatically adjusting its
environment (extending LD_LIBRARY_PATH) and re-execing itself under
valgrind if so requested.
src/daemon/config.c
src/daemon/config.h
src/daemon/daemon.c