mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
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:
parent
2567bc10ec
commit
eb484d6c37
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ static void signal_handler(int sig) {
|
||||||
signal(sig, signal_handler);
|
signal(sig, signal_handler);
|
||||||
#endif
|
#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;
|
errno = saved_errno;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue