mainloop-signal: Explicitly ignore pa_write() return value.

Coverity warned about an ignored return value. I'm not sure
if there's something that should be done if writing fails;
at least I couldn't think of anything. Would logging an
error be acceptable here?
This commit is contained in:
Tanu Kaskinen 2012-03-30 11:04:33 +03:00 committed by Tanu Kaskinen
parent 2567bc10ec
commit eb484d6c37

View file

@ -72,7 +72,8 @@ static void signal_handler(int sig) {
signal(sig, signal_handler);
#endif
pa_write(signal_pipe[1], &sig, sizeof(sig), NULL);
/* XXX: If writing fails, there's nothing we can do? */
(void) pa_write(signal_pipe[1], &sig, sizeof(sig), NULL);
errno = saved_errno;
}