]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aplay - Fix possible endless loop with SIGBART
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Jul 2007 13:20:52 +0000 (15:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Jul 2007 13:20:52 +0000 (15:20 +0200)
The signal handler may cause endless loop with SIGABRT.

aplay/aplay.c

index f207ffec846312bf6e2efc2170a0d7532171f494..564a3d6f3ec6a9568bcf96fba5415e5cd9e1cc82 100644 (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;
        }