From: Craig Small Date: Thu, 3 May 2018 11:06:05 +0000 (+1000) Subject: library: check not undef SIGLOST X-Git-Tag: v3.3.15~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75bd099420ac78626df8544e442b869ea38dcaa3;p=procps-ng 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. --- 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},