- if(ignoreErrno(errno))
- flags = COMM_SELECT_WRITE|COMM_SELECT_RETRY;
- else
- flags = COMM_SELECT_WRITE;
- if(linebuf_len(&to->localClient->buf_sendq))
- rb_setselect(fd, FDLIST_IDLECLIENT, flags,
- send_queued_write, to, 0);
+ if(rb_linebuf_len(&to->localClient->buf_sendq))
+ rb_setselect(to->localClient->F, RB_SELECT_WRITE,
+ send_queued_write, to);
+}
+
+/* send_queued_write()
+ *
+ * inputs - fd to have queue sent, client we're sending to
+ * outputs - contents of queue
+ * side effects - write is scheduled if queue isnt emptied
+ */
+static void
+send_queued_write(rb_fde_t *F, void *data)
+{
+ struct Client *to = data;
+ /*ClearFlush(to);*/
+ send_queued(to);