summaryrefslogtreecommitdiffstats
path: root/klogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-06-15 12:41:08 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-06-15 12:41:08 +0000
commit1a2af0bd5df4b57359041076244b867a15e23a8c (patch)
treef32695d7972c37cf01482b400a1e3813771eabde /klogd.c
parent89943ed274a905a6fcc2348f71896fd58596d6ae (diff)
downloadrsyslog-1a2af0bd5df4b57359041076244b867a15e23a8c.tar.gz
rsyslog-1a2af0bd5df4b57359041076244b867a15e23a8c.tar.xz
rsyslog-1a2af0bd5df4b57359041076244b867a15e23a8c.zip
added new property replacer property "PRI-text"
Diffstat (limited to 'klogd.c')
-rw-r--r--klogd.c10
1 files changed, 8 insertions, 2 deletions
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:
*/