Commit fff39034 authored by Jonathan Currier's avatar Jonathan Currier
Browse files

log failures

parent 6df591c6
......@@ -116,6 +116,7 @@ int transport_unix_dispatch(struct mbox_context *context)
MSG_DBG("epoll_wait(): %d(%m)\n", count);
for (i = 0; i < count; i++)
{
int rc;
ectx = evps[i].data.ptr;
MSG_DBG("fd[%d].epoll_event.event: %08x\n", ectx->fd, evps[i].events);
/* NOTE: ectx might be freed after this call
......@@ -125,7 +126,7 @@ int transport_unix_dispatch(struct mbox_context *context)
* however it probably doesn't matter because we are not a
* high performance server (the though of this needing high
* throughput is horrifying)*/
ectx->ops->work(context, ectx, evps + i);
rc = ectx->ops->work(context, ectx, evps + i);
ectx = NULL;
}
}
......@@ -204,7 +205,10 @@ int conn_fd_work(struct mbox_context *context, struct ep_ctx* ectx, struct epoll
if ((readlen >= 4) && (req.request < husx_api_limit) &&
(husc_dispatch_lut[req.request].hdlr))
{
husc_dispatch_lut[req.request].hdlr(context, ectx, &req);
int rc;
rc = husc_dispatch_lut[req.request].hdlr(context, ectx, &req);
if (rc)
MSG_DBG("WARNING: cmd %x return %x\n", req.request, rc);
return 0;
}
return -1;
......@@ -364,7 +368,7 @@ static int hust_markdirty_hdlr(struct mbox_context *context, struct ep_ctx *ectx
struct protocol_mark_dirty io;
int rc;
io.req.v2.offset = req->args[0];
io.req.v2.size = req->args[0];
io.req.v2.size = req->args[1];
if ((rc = context->protocol->mark_dirty(context, &io)) < 0)
return rc;
memset(req, 0, sizeof(*req));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment