summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
12ccc73)
This allows send_msg() to decide if the message should be sent right
away, or should be deferred.
if (am_server) {
/* Pass the message to the non-server side. */
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? */
return;
if (am_daemon) {
/* TODO: can we send the error to the user somehow? */