]> granicus.if.org Git - procps-ng/commitdiff
library: check not undef SIGLOST
authorCraig Small <csmall@enc.com.au>
Thu, 3 May 2018 11:06:05 +0000 (21:06 +1000)
committerCraig Small <csmall@enc.com.au>
Thu, 3 May 2018 11:06:05 +0000 (21:06 +1000)
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
proc/sig.c

diff --git a/NEWS b/NEWS
index 326435d017d1cdc6034f4eeea2a9deeb7bf16396..54627ffc0e79ef666cdfb8a488a114f1213a0a8f 100644 (file)
--- 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
 ----------------
index b883185fc28afbcfb4afb68c04c800965d205add..6ca9512cc70c1b3e70a683431f3a68417af94b56 100644 (file)
 #  undef SIGSTKFLT
 #endif
 
-#if !defined(__GNU__) && defined(SIGLOST)
-#  undef SIGLOST
-#endif
-
 #ifndef SIGRTMIN
 #  warning Standards require that <signal.h> 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},