mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:16:32 +01:00
Use strsignal()
Use strsignal() instead of sys_siglist[] (bug#1400).
This commit is contained in:
parent
87ffccedfd
commit
0c4dfcaa97
1 changed files with 2 additions and 1 deletions
|
@ -100,6 +100,7 @@
|
||||||
* automated updates after select() (i always missed that with OSS!).
|
* automated updates after select() (i always missed that with OSS!).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -2205,7 +2206,7 @@ static void
|
||||||
mixer_signal_handler (int signal)
|
mixer_signal_handler (int signal)
|
||||||
{
|
{
|
||||||
if (signal != SIGSEGV)
|
if (signal != SIGSEGV)
|
||||||
mixer_abort (ERR_SIGNAL, sys_siglist[signal], 0);
|
mixer_abort (ERR_SIGNAL, strsignal(signal), 0);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (stderr, "\nSegmentation fault.\n");
|
fprintf (stderr, "\nSegmentation fault.\n");
|
||||||
|
|
Loading…
Reference in a new issue