From 61a9a5422902cfda249f3168d40c335a2a8f4efc Mon Sep 17 00:00:00 2001 From: Craig Small Date: Thu, 3 May 2018 21:06:05 +1000 Subject: [PATCH] library: check not undef SIGLOST sig.c had this odd logic where on non-Hurd systems it would undefine SIGLOST. Fine for Hurd or amd64 Linux systems. Bad for a sparc which has SIGLOST defined *and* is not Hurd. Just check its defined, its much simpler. --- NEWS | 1 + lib/signals.c | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 326435d0..6d21280c 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,7 @@ procps-ng-3.3.13 * library: dont use vm_min_free on non Linux Debian #831396 * library: dont use SIGPWR on FreeBSD Debian #832148 * library: don't strip off wchan prefixes (ps & top) Redhat #1322111 + * library: Just check for SIGLOST and don't delete it issue #93 * pgrep: warn about 15+ char name only if -f not used * pgrep/pkill: only match in same namespace by default merge #41 * pidof: specify separator between pids merge #58 diff --git a/lib/signals.c b/lib/signals.c index 59ffce66..6d9cc559 100644 --- a/lib/signals.c +++ b/lib/signals.c @@ -52,10 +52,6 @@ # undef SIGSTKFLT #endif -#if !defined(__GNU__) && defined(SIGLOST) -# undef SIGLOST -#endif - #ifndef SIGRTMIN # warning Standards require that define SIGRTMIN; assuming 32 # define SIGRTMIN 32 @@ -87,7 +83,7 @@ static const mapstruct sigtable[] = { {"ILL", SIGILL}, {"INT", SIGINT}, {"KILL", SIGKILL}, -#ifdef SIGLOST +#if defined(__GNU__) {"LOST", SIGLOST}, /* Hurd-specific */ #endif {"PIPE", SIGPIPE},