summaryrefslogtreecommitdiffstats
path: root/omfwd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-25 16:50:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-25 16:50:12 +0000
commitd0a93ad442331d12ee474ee859ee4fef5474b98f (patch)
tree760285102bc407030c5161f841a0058601af08c6 /omfwd.c
parentedbbf96be75d5e3ada30b08d6bf7aea7881248f5 (diff)
downloadrsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.gz
rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.xz
rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.zip
introduced getWriteFDForSelect() module API
Diffstat (limited to 'omfwd.c')
-rw-r--r--omfwd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/omfwd.c b/omfwd.c
index e54a1fad..521d0597 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -475,6 +475,17 @@ CODESTARTparseSelectorAct
ENDparseSelectorAct
+BEGINgetWriteFDForSelect
+CODESTARTgetWriteFDForSelect
+ if( (f->f_type == F_FORW)
+ && (f->f_un.f_forw.protocol == FORW_TCP)
+ && TCPSendGetStatus(f) == TCP_SEND_CONNECTING) {
+ *fd = f->f_file;
+ iRet = RS_RET_OK;
+ }
+ENDgetWriteFDForSelect
+
+
BEGINqueryEtryPt
CODESTARTqueryEtryPt
CODEqueryEtryPt_STD_OMOD_QUERIES