From: Wayne Davison Date: Wed, 3 May 2006 16:17:49 +0000 (+0000) Subject: Use send_msg() when forwarding a log message, not io_multiplex_write(). X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3723548dedd44811fc7ac9425ac3134e46bfd52a Use send_msg() when forwarding a log message, not io_multiplex_write(). This allows send_msg() to decide if the message should be sent right away, or should be deferred. --- diff --git a/log.c b/log.c index 3f57a44b..4abc3d5e 100644 --- a/log.c +++ b/log.c @@ -256,7 +256,7 @@ void rwrite(enum logcode code, char *buf, int len) if (am_server) { /* Pass the message to the non-server side. */ - if (io_multiplex_write((enum msgcode)code, buf, len)) + if (send_msg(code, buf, len)) return; if (am_daemon) { /* TODO: can we send the error to the user somehow? */