src/t_mtab: Replace sys_siglist[] with strsignal()

strsignal(3) says that strsignal() should be used instead of
sys_siglist[].

Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Rostislav Skudnov
2018-01-22 15:57:18 +00:00
committed by Eryu Guan
parent 53b8b92652
commit 38a006979b
+1 -1
View File
@@ -34,7 +34,7 @@ static int signals_have_been_setup = 0;
/* Ensure that the lock is released if we are interrupted. */
static void
handler (int sig) {
fprintf(stderr, "%s\n", sys_siglist[sig]);
fprintf(stderr, "%s\n", strsignal(sig));
exit(1);
}