naemon/naemon — pull request #4 by atj (2013-11-13 09:30:36+00:00)
Title: Fix daemon_dumps_core on Linux when started as root

Under Linux, systems calls that manipulate UIDs and GIDs reset the
process dumpable flag to 0. When Naemon is started as root it drops
privileges using setuid/setgid, preventing core dumps from being
produced regardless of the value of daemon_dumps_core. This patch fixes
that by calling prctl() in drop_privileges().