core: log when sendmsg fails

Reported by Coverity as CID #970962, #970963.
This commit is contained in:
Riccardo Magliocchetti
2013-01-28 18:41:08 +01:00
parent 0af894df06
commit 58314c2800
+6 -3
View File
@@ -20,7 +20,9 @@ void uwsgi_systemd_notify(char *message) {
msghdr->msg_iovlen = 3;
sendmsg(uwsgi.notification_fd, msghdr, 0);
if (sendmsg(uwsgi.notification_fd, msghdr, 0) < 0) {
uwsgi_error("sendmsg()");
}
}
void uwsgi_systemd_notify_ready(void) {
@@ -33,8 +35,9 @@ void uwsgi_systemd_notify_ready(void) {
msghdr->msg_iovlen = 1;
sendmsg(uwsgi.notification_fd, msghdr, 0);
if (sendmsg(uwsgi.notification_fd, msghdr, 0) < 0) {
uwsgi_error("sendmsg()");
}
}