summaryrefslogtreecommitdiffstats
path: root/tools/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-07-06 16:38:09 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-07-06 16:38:09 +0200
commite3040285dbf0854443bc2443e0de5ac59f6f839e (patch)
tree557eae59b899f2311a9a8ba80ea32e465fff3e9a /tools/syslogd.c
parent7fdeac0bdcaad3525f203ae5dc1fa7636078e37f (diff)
downloadrsyslog-e3040285dbf0854443bc2443e0de5ac59f6f839e.tar.gz
rsyslog-e3040285dbf0854443bc2443e0de5ac59f6f839e.tar.xz
rsyslog-e3040285dbf0854443bc2443e0de5ac59f6f839e.zip
first shot at asynchronous stream writer with timeout capability
... seems to work on quick testing, but needs a far more testing and improvement. Good milestone commit.
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r--tools/syslogd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index f7253a8e..f79410d7 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -2548,8 +2548,8 @@ mainloop(void)
* powertop, for example). In that case, we primarily wait for a signal,
* but a once-a-day wakeup should be quite acceptable. -- rgerhards, 2008-06-09
*/
- //tvSelectTimeout.tv_sec = (bReduceRepeatMsgs == 1) ? TIMERINTVL : 86400 /*1 day*/;
- tvSelectTimeout.tv_sec = TIMERINTVL; /* TODO: change this back to the above code when we have a better solution for apc */
+ tvSelectTimeout.tv_sec = (bReduceRepeatMsgs == 1) ? TIMERINTVL : 86400 /*1 day*/;
+ //tvSelectTimeout.tv_sec = TIMERINTVL; /* TODO: change this back to the above code when we have a better solution for apc */
tvSelectTimeout.tv_usec = 0;
select(1, NULL, NULL, NULL, &tvSelectTimeout);
if(bFinished)
@@ -2584,7 +2584,7 @@ mainloop(void)
bHadHUP = 0;
continue;
}
- execScheduled(); /* handle Apc calls (if any) */
+ // TODO: remove execScheduled(); /* handle Apc calls (if any) */
}
ENDfunc
}