diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-15 14:33:23 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-15 14:33:23 +0100 |
commit | 0114b531b38b16db98b04b680017d6c758987fd9 (patch) | |
tree | ae9f5313efb1aa0c27415efb6d88709249ec5f5c /runtime/debug.c | |
parent | 6345e959d96bd9a3cbeeaea7f99572c33bea3054 (diff) | |
download | rsyslog-0114b531b38b16db98b04b680017d6c758987fd9.tar.gz rsyslog-0114b531b38b16db98b04b680017d6c758987fd9.tar.bz2 rsyslog-0114b531b38b16db98b04b680017d6c758987fd9.zip |
debug system improvement & bug fix for init system status (see below)
- rsyslogd startup information is now properly conveyed back to init
when privileges are beging dropped
Actually, we have moved termination of the parent in front of the
priv drop. So it shall work now in all cases. See code comments in
commit for more details.
- If forking, the parent now waits for a maximum of 60 seconds for
termination by the child
- improved debugging support in forked (auto-backgrounding) mode
The rsyslog debug log file is now continued to be written across the
fork.
Diffstat (limited to 'runtime/debug.c')
-rw-r--r-- | runtime/debug.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/debug.c b/runtime/debug.c index 1d306dbd..26da31b4 100644 --- a/runtime/debug.c +++ b/runtime/debug.c @@ -1296,6 +1296,15 @@ dbgmalloc(size_t size) } +/* report fd used for debug log. This is needed in case of + * auto-backgrounding, where the debug log shall not be closed. + */ +int +dbgGetDbglogFd(void) +{ + return altdbg; +} + /* read in the runtime options * rgerhards, 2008-02-28 */ |