aplay/arecord: change the interrupt handling using snd_pcm_abort()
authorJaroslav Kysela <perex@perex.cz>
Mon, 8 Apr 2013 11:30:54 +0000 (13:30 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 8 Apr 2013 11:30:54 +0000 (13:30 +0200)
commit1d0042d7e948815f8015c62bc53143eed3b83206
tree5ba8714c5cc1da3cfa6bd0e4c0117380a1ab20b0
parentffaff068498bd167193ebeb55331d0bce0fd57f1
aplay/arecord: change the interrupt handling using snd_pcm_abort()

It is required (exclude the fatal SIGABRT) to call snd_pcm_close() and
the end of work (outside of the interrupt handler). Use new snd_pcm_abort()
function to inform alsa-lib to not ignore EINTR and move the in_aborting
variable to the global scope to be checked in the i/o loops.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c