diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-11-21 10:09:02 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-11-21 10:09:02 +0000 |
commit | 214c7bd7f8552f0a07a15373b4a222da6e9e6ba6 (patch) | |
tree | c27d4e7d17f3b85f3a75c4a4b1e1df7fd523a00b /syslogd.c | |
parent | 96b390934051e8b0de71ccf71538e8ae3319f00d (diff) | |
download | rsyslog-214c7bd7f8552f0a07a15373b4a222da6e9e6ba6.tar.gz rsyslog-214c7bd7f8552f0a07a15373b4a222da6e9e6ba6.tar.xz rsyslog-214c7bd7f8552f0a07a15373b4a222da6e9e6ba6.zip |
added new modExit() entry point to loadable module interface
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -3644,7 +3644,7 @@ static void die(int sig) /* de-init some modules */ modExitIminternal(); - unregCfSysLineHdlrs(); + unregCfSysLineHdlrs(); /* TODO: this needs to go away when the module de-init works */ /* TODO: this would also be the right place to de-init the builtin output modules. We * do not currently do that, because the module interface does not allow for @@ -4329,8 +4329,7 @@ static void init(void) } } - assert (pAllowedSenders_UDP == NULL && - pAllowedSenders_TCP == NULL ); + assert(pAllowedSenders_UDP == NULL && pAllowedSenders_TCP == NULL); #endif /* I was told by an IPv6 expert that calling getservbyname() seems to be * still valid, at least for the use case we have. So I re-enabled that @@ -4366,7 +4365,9 @@ static void init(void) dbgprintf("rsyslog %s.\n", VERSION); dbgprintf("Called init.\n"); - /* Close all open log files and free log descriptor array. */ + /* Close all open log files and free log descriptor array. This also frees + * all output-modules instance data. + */ freeSelectors(); /* Unload all non-static modules */ |