From ea04f2c888a1f47c1015b97d87dfa141a32a5b6f Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 12 Jul 2007 15:20:52 +0200 Subject: [PATCH] aplay - Fix possible endless loop with SIGBART The signal handler may cause endless loop with SIGABRT. --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.1