提交 b2e4ace2 编写于 作者: J John Ferlan

Coverity: Resolve a CHECKED_RETURN message

Recent changes to the module seemed to have caused Coverity to find a new
issue regarding the failure to check the return from a sendmsg. The code
doesn't seem to care about the return status, so just added an ignore_value
to keep Coverity quiet.
上级 ff436380
...@@ -1003,7 +1003,7 @@ virLogOutputToJournald(virLogSourcePtr source, ...@@ -1003,7 +1003,7 @@ virLogOutputToJournald(virLogSourcePtr source,
mh.msg_controllen = cmsg->cmsg_len; mh.msg_controllen = cmsg->cmsg_len;
sendmsg(journalfd, &mh, MSG_NOSIGNAL); ignore_value(sendmsg(journalfd, &mh, MSG_NOSIGNAL));
cleanup: cleanup:
VIR_LOG_CLOSE(buffd); VIR_LOG_CLOSE(buffd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册