From 75bd099420ac78626df8544e442b869ea38dcaa3 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 | 3 ++- proc/sig.c | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index 326435d0..54627ffc 100644 --- a/NEWS +++ b/NEWS @@ -1,9 +1,10 @@ procps-ng-3.3.14 ---------------- + * free: Fix scaling on 32-bit systems issue #89 * pgrep: Don't segfault on non match Debian #894917 * pgrep/pkill: Revert so matches all namespaces issue #91 - * free: Fix scaling on 32-bit systems issue #89 * library: Build on non-glibc systems issue #88 + * library: Just check for SIGLOST and don't delete it issye #93 procps-ng-3.3.13 ---------------- diff --git a/proc/sig.c b/proc/sig.c index b883185f..6ca9512c 100644 --- a/proc/sig.c +++ b/proc/sig.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},