From: Jaroslav Kysela Date: Mon, 2 Dec 2002 20:18:29 +0000 (+0000) Subject: Added POLLNVAL test X-Git-Tag: v1.0.3~98 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a4393426766c2651bf1ffd165eec636787c840b1;p=alsa-utils.git Added POLLNVAL test --- diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c index 87729cf..ce8ad8e 100644 --- a/alsamixer/alsamixer.c +++ b/alsamixer/alsamixer.c @@ -1698,6 +1698,8 @@ mixer_iteration (void) if (finished > 0) { if (snd_mixer_poll_descriptors_revents(mixer_handle, fds + 1, count, &revents) >= 0) { + if (revents & POLLNVAL) + mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors (POLLNVAL)", 0); if (revents & POLLERR) mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors (POLLERR)", 0); if (revents & POLLIN)