diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 13:51:40 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 13:51:40 +0000 |
commit | 6dd11dfc61473f07cf88102df7089a2673713e6e (patch) | |
tree | 2452edd796958f4fc29843534f61d379324acb1b /syslogd.c | |
parent | 365e210196e7d714b1155be3b65e39da3795b667 (diff) | |
download | rsyslog-6dd11dfc61473f07cf88102df7089a2673713e6e.tar.gz rsyslog-6dd11dfc61473f07cf88102df7089a2673713e6e.tar.bz2 rsyslog-6dd11dfc61473f07cf88102df7089a2673713e6e.zip |
slight change to init() to prevent race condition
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4301,13 +4301,14 @@ init(void) struct servent *sp; struct sigaction sigAct; + thrdTerminateAll(); /* stop all running threads - TODO: reconsider location! */ + /* initialize some static variables */ pDfltHostnameCmp = NULL; pDfltProgNameCmp = NULL; eDfltHostnameCmpMode = HN_NO_COMP; Forwarding = 0; - thrdTerminateAll(); /* stop all running threads - TODO: reconsider location! */ #ifdef SYSLOG_INET if (restart) { if (pAllowedSenders_UDP != NULL) { |