diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-09-16 07:45:00 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-09-16 07:45:00 +0900 |
commit | 6e2910aae8ce2c71bafdee03428521ef1adfe3d4 (patch) | |
tree | 8846077e37ee5159c6c7b4d9d036abec8bee11a9 /common/signal.c | |
parent | 81b41129a9dd5913eb052d19dc4a46e4f266c2ae (diff) | |
download | gpg2-6e2910aae8ce2c71bafdee03428521ef1adfe3d4.tar.gz gpg2-6e2910aae8ce2c71bafdee03428521ef1adfe3d4.tar.bz2 gpg2-6e2910aae8ce2c71bafdee03428521ef1adfe3d4.zip |
Imported Upstream version 2.2.31upstream/2.2.31
Diffstat (limited to 'common/signal.c')
-rw-r--r-- | common/signal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/signal.c b/common/signal.c index ccfa8e6..92925fd 100644 --- a/common/signal.c +++ b/common/signal.c @@ -87,7 +87,9 @@ get_signal_name( int signum ) { /* Note that we can't use strsignal(), because it is not reentrant. */ -#if HAVE_DECL_SYS_SIGLIST && defined(NSIG) +#if HAVE_SIGDESCR_NP + return sigdescr_np (signum); +#elif HAVE_DECL_SYS_SIGLIST && defined(NSIG) return (signum >= 0 && signum < NSIG) ? sys_siglist[signum] : "?"; #else return NULL; |