summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-16 09:42:36 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-16 09:42:36 +0200
commite005c5569c3e0c7c9a098036b7ec3596c3c722b4 (patch)
tree3a130a168de2e9b3aa3cc4c8a4eb46d4cc62e35a /plugins
parentd9f1a16de4723f9e096fa9abe47e8a845c815df0 (diff)
downloadrsyslog-e005c5569c3e0c7c9a098036b7ec3596c3c722b4.tar.gz
rsyslog-e005c5569c3e0c7c9a098036b7ec3596c3c722b4.tar.xz
rsyslog-e005c5569c3e0c7c9a098036b7ec3596c3c722b4.zip
some minor cleanup, consolidated some code
Diffstat (limited to 'plugins')
-rw-r--r--plugins/immark/immark.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/immark/immark.c b/plugins/immark/immark.c
index 19f43456..5d48369e 100644
--- a/plugins/immark/immark.c
+++ b/plugins/immark/immark.c
@@ -42,6 +42,7 @@
#include "module-template.h"
#include "errmsg.h"
#include "msg.h"
+#include "srUtils.h"
#include "glbl.h"
MODULE_TYPE_INPUT
@@ -80,20 +81,13 @@ CODESTARTrunInput
* right into the sleep below.
*/
while(1) {
- /* we do not need to handle the RS_RET_TERMINATE_NOW case any
- * special because we just need to terminate. This may be different
- * if a cleanup is needed. But for now, we can just use CHKiRet().
- * rgerhards, 2007-12-17
- */
- CHKiRet(thrdSleep(pThrd, iMarkMessagePeriod, 0)); /* seconds, micro seconds */
+ srSleep(iMarkMessagePeriod, 0); /* seconds, micro seconds */
if(glbl.GetGlobalInputTermState() == 1)
break; /* terminate input! */
logmsgInternal(NO_ERRCODE, LOG_INFO, (uchar*)"-- MARK --", MARK);
}
-finalize_it:
- return iRet;
ENDrunInput