- if (io_error_write(log_error_fd, code, buf, strlen(buf))) return;
+ /* first try to pass it off the our sibling */
+ if (am_server && io_error_write(log_error_fd, code, buf, len)) {
+ return;
+ }
+
+ /* then try to pass it to the other end */
+ if (am_server && io_multiplex_write(code, buf, len)) {
+ return;
+ }