summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-24 16:21:22 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-24 16:21:22 +0000
commit989d0ed8581de3cb5b6b8ed7a1aa25708638cbb3 (patch)
treee796cec85979aa43fd1b1d78f2821c64897c3415
parent8b10689f16a46c777e0a5d2d9ac384fafb1425f5 (diff)
downloadrsyslog-989d0ed8581de3cb5b6b8ed7a1aa25708638cbb3.tar.gz
rsyslog-989d0ed8581de3cb5b6b8ed7a1aa25708638cbb3.tar.xz
rsyslog-989d0ed8581de3cb5b6b8ed7a1aa25708638cbb3.zip
removed previous emergency logging system on startup, because it is not
compatible with the new modules; need to re-implement the full functionality, currently stderr is used
-rw-r--r--syslogd.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/syslogd.c b/syslogd.c
index 08b0d10d..1d9bd825 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -467,11 +467,7 @@ union sockunion {
#define LIST_DELIMITER ':' /* delimiter between two hosts */
struct filed *Files = NULL; /* read-only after init() (but beware of sigusr1!) */
-struct filed consfile; /* initialized on startup, used during actions - maybe NON THREAD-SAFE */
-struct filed emergfile; /* this is only used for emergency logging when
- * no actual config has been loaded.
- * useded during actions in emergencase - thread-safety doubtful
- */
+// TODO: REMOVE! struct filed consfile; /* initialized on startup, used during actions - maybe NON THREAD-SAFE */
struct code {
char *c_name;
@@ -3541,16 +3537,6 @@ static void die(int sig)
*/
tplDeleteAll();
- if(consfile.f_iov != NULL)
- free(consfile.f_iov);
- if(consfile.f_bMustBeFreed != NULL)
- free(consfile.f_bMustBeFreed);
-
- if(emergfile.f_iov != NULL)
- free(emergfile.f_iov);
- if(emergfile.f_bMustBeFreed != NULL)
- free(emergfile.f_bMustBeFreed);
-
remove_pid(PidFile);
if(glblHadMemShortage)
dprintf("Had memory shortage at least once during the run.\n");
@@ -5917,12 +5903,6 @@ int main(int argc, char **argv)
pTmp = template_StdDBFmt;
tplLastStaticInit(tplAddLine(" StdDBFmt", &pTmp));
- /* prepare emergency logging system */
-
- consfile.f_type = F_CONSOLE;
- strcpy(consfile.f_un.f_file.f_fname, ctty);
- /* TODO: check this */
- cflineSetTemplateAndIOV(&consfile, " TradFmt");
gethostname(LocalHostName, sizeof(LocalHostName));
if ( (p = strchr(LocalHostName, '.')) ) {
*p++ = '\0';