From 1a2af0bd5df4b57359041076244b867a15e23a8c Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 15 Jun 2007 12:41:08 +0000 Subject: added new property replacer property "PRI-text" --- klogd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'klogd.c') diff --git a/klogd.c b/klogd.c index 2e7c0428..f65116bd 100644 --- a/klogd.c +++ b/klogd.c @@ -457,7 +457,7 @@ void stop_logging(int sig) void stop_daemon(int sig) { - Terminate(); + change_state = 1; return; } @@ -1120,7 +1120,12 @@ int main(int argc, char *argv[]) } /* The main loop. */ - while (1) + /* The main loop will be broken by a signal handler which set the + * terminate variable. That is then cheked in ChangeLogging(), which + * will then terminate klogd. + * RGerhards, 2007-06-15 + */ + while(1) { if ( change_state ) ChangeLogging(); @@ -1152,4 +1157,5 @@ int main() * c-basic-offset: 8 * tab-width: 8 * End: + * vi:set ai: */ -- cgit