diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-08 17:55:52 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-08 17:55:52 +0200 |
commit | d9cde56eb8532bd660d6feb2249562afac0c40f6 (patch) | |
tree | b8c562c0bed8f6bc029dfb7c518356c71e116d5b /plugins/omrelp/omrelp.c | |
parent | ba592431e279b3dafb74b93824a1478ff0d9724f (diff) | |
download | rsyslog-d9cde56eb8532bd660d6feb2249562afac0c40f6.tar.gz rsyslog-d9cde56eb8532bd660d6feb2249562afac0c40f6.tar.bz2 rsyslog-d9cde56eb8532bd660d6feb2249562afac0c40f6.zip |
add output module interface to facilitate cooperative shutdown
... in more complex cases (where receiving SIGTTIN is not sufficient).
See also:
http://blog.gerhards.net/2013/04/rsyslog-output-plugin-wrangling.html
Diffstat (limited to 'plugins/omrelp/omrelp.c')
-rw-r--r-- | plugins/omrelp/omrelp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/omrelp/omrelp.c b/plugins/omrelp/omrelp.c index 7d536cbc..0374b697 100644 --- a/plugins/omrelp/omrelp.c +++ b/plugins/omrelp/omrelp.c @@ -188,6 +188,11 @@ CODESTARTisCompatibleWithFeature iRet = RS_RET_OK; ENDisCompatibleWithFeature +BEGINSetShutdownImmdtPtr +CODESTARTSetShutdownImmdtPtr + DBGPRINTF("omrelp: shutdownImmediate ptr now is %p\n", pPtr); +ENDSetShutdownImmdtPtr + BEGINdbgPrintInstInfo CODESTARTdbgPrintInstInfo @@ -411,6 +416,7 @@ CODESTARTqueryEtryPt CODEqueryEtryPt_STD_OMOD_QUERIES CODEqueryEtryPt_STD_CONF2_CNFNAME_QUERIES CODEqueryEtryPt_STD_CONF2_OMOD_QUERIES +CODEqueryEtryPt_SetShutdownImmdtPtr ENDqueryEtryPt |