From: Takashi Iwai Date: Thu, 12 Jul 2007 13:20:52 +0000 (+0200) Subject: aplay - Fix possible endless loop with SIGBART X-Git-Tag: v1.0.15rc1~8 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=ea04f2c888a1f47c1015b97d87dfa141a32a5b6f;p=alsa-utils.git aplay - Fix possible endless loop with SIGBART The signal handler may cause endless loop with SIGABRT. --- diff --git a/aplay/aplay.c b/aplay/aplay.c index f207ffe..564a3d6 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -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; }