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>
/* Ensure that the lock is released if we are interrupted. */
static void
handler (int sig) {
/* 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));