aplay - Fix possible endless loop with SIGBART

The signal handler may cause endless loop with SIGABRT.
This commit is contained in:
Takashi Iwai 2007-07-12 15:20:52 +02:00
parent 8d0fb15b2b
commit ea04f2c888

View file

@ -322,7 +322,7 @@ static void signal_handler(int sig)
close(fd);
fd = -1;
}
if (handle) {
if (handle && sig != SIGABRT) {
snd_pcm_close(handle);
handle = NULL;
}