mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-12 23:45:43 +01:00
aplay - Fix possible endless loop with SIGBART
The signal handler may cause endless loop with SIGABRT.
This commit is contained in:
parent
8d0fb15b2b
commit
ea04f2c888
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ static void signal_handler(int sig)
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
fd = -1;
|
||||||
}
|
}
|
||||||
if (handle) {
|
if (handle && sig != SIGABRT) {
|
||||||
snd_pcm_close(handle);
|
snd_pcm_close(handle);
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue