efl debugd - check return of write func and report errors

makes coverity happy and reports write errors... fix CID 1377525
This commit is contained in:
Carsten Haitzler 2017-09-29 11:21:37 +09:00
parent 0889d5b76d
commit d4fd5b0287
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,9 @@ _dispatch(Client *src, void *buffer)
hdr->cid = SWAP_32(src->cid);
hdr->size = SWAP_32(hdr->size);
hdr->opcode = SWAP_32(hdr->opcode);
efl_io_writer_write(dest->client, &s, NULL);
if (efl_io_writer_write(dest->client, &s, NULL) !=
EINA_ERROR_NO_ERROR)
ERR("Cannot write to client [%s:%i]", dest->app_name, (int)dest->pid);
INF("Transfer of %d bytes from %s(%d) to %s(%d): operation %s\n",
hdr->size,
src->app_name, src->pid,