alsa: add log in case of poll was interrupted

poll may be interrupted due to signal, in that case print
error log

Change-Id: I1b2b2543a4b056b50af7617efc80fe517bddaaae
Signed-off-by: Adam Miartus <external.Adam.Miartus@de.bosch.com>
(cherry picked from commit 20883aa404c3d5eb0370eaa8ab2337f3b95c1bf9)
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
This commit is contained in:
Adam Miartus 2020-02-26 16:03:32 +01:00 committed by Filipe Coelho
parent d9f84dcca3
commit 1180f86400
1 changed files with 3 additions and 1 deletions

View File

@ -1367,12 +1367,14 @@ alsa_driver_wait (alsa_driver_t *driver, int extra_fd, int *status, float
if (poll_result < 0) {
if (errno == EINTR) {
jack_info ("poll interrupt");
const char poll_log[] = "ALSA: poll interrupt";
// this happens mostly when run
// under gdb, or when exiting due to a signal
if (under_gdb) {
jack_info(poll_log);
goto again;
}
jack_error(poll_log);
*status = -2;
return 0;
}