New --managed option for use when running under a daemon supervisor.
authorRichard Kettlewell <rjk@terraraq.org.uk>
Sat, 10 Dec 2011 22:35:47 +0000 (22:35 +0000)
committerRichard Kettlewell <rjk@terraraq.org.uk>
Sat, 10 Dec 2011 22:35:47 +0000 (22:35 +0000)
commit7b1a9fb74228564b5ee07b48c042ee7b9a2260f1
tree691753028e58abb096bdfe3ce6a8b4bb6852c208
parent42394c373c85942b55a9632c3182ec7c95731012
New --managed option for use when running under a daemon supervisor.

The effect is secnet is told that it is running as a daemon right from
the start, so it knows to follow the logging rules for daemons but not
to fork.

The conflation of daemonization with dropping privilege is also
unpicked by this patch.  Most importantly this ensures that errors
from PHASE_GETRESOURCES operations such as 'route' commands is sent to
the logfile (or syslog).

Signed-off-by: Richard Kettlewell <rjk@terraraq.org.uk>
log.c
secnet.c
secnet.h
uk.org.greenend.secnet.plist
util.c