mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Eryu Guan
parent
53b8b92652
commit
38a006979b
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user