diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-06-15 12:41:08 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-06-15 12:41:08 +0000 |
commit | 1a2af0bd5df4b57359041076244b867a15e23a8c (patch) | |
tree | f32695d7972c37cf01482b400a1e3813771eabde /klogd.c | |
parent | 89943ed274a905a6fcc2348f71896fd58596d6ae (diff) | |
download | rsyslog-1a2af0bd5df4b57359041076244b867a15e23a8c.tar.gz rsyslog-1a2af0bd5df4b57359041076244b867a15e23a8c.tar.bz2 rsyslog-1a2af0bd5df4b57359041076244b867a15e23a8c.zip |
added new property replacer property "PRI-text"
Diffstat (limited to 'klogd.c')
-rw-r--r-- | klogd.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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: */ |