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 /syslogd.c | |
parent | edbbf96be75d5e3ada30b08d6bf7aea7881248f5 (diff) | |
download | rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.gz rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.bz2 rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.zip |
introduced getWriteFDForSelect() module API
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -5258,14 +5258,13 @@ static void mainloop(void) * scheduled to be replaced after the liblogging integration. * rgerhards 2005-07-20 */ + short fdMod; FD_ZERO(&writefds); for (f = Files; f != NULL ; f = f->f_next) { - if( (f->f_type == F_FORW) - && (f->f_un.f_forw.protocol == FORW_TCP) - && (TCPSendGetStatus(f) == TCP_SEND_CONNECTING)) { - FD_SET(f->f_file, &writefds); - if(f->f_file > maxfds) - maxfds = f->f_file; + if(f->pMod->getWriteFDForSelect(f, f->pModData, &fdMod) == RS_RET_OK) { + FD_SET(fdMod, &writefds); + if(fdMod > maxfds) + maxfds = fdMod; } } } |