diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 16:50:12 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 16:50:12 +0000 |
commit | d0a93ad442331d12ee474ee859ee4fef5474b98f (patch) | |
tree | 760285102bc407030c5161f841a0058601af08c6 /omfwd.c | |
parent | edbbf96be75d5e3ada30b08d6bf7aea7881248f5 (diff) | |
download | rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.gz rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.xz rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.zip |
introduced getWriteFDForSelect() module API
Diffstat (limited to 'omfwd.c')
-rw-r--r-- | omfwd.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |