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.
This commit is contained in:
Craig Small 2018-05-03 21:06:05 +10:00
parent ca07bcad4d
commit 75bd099420
2 changed files with 3 additions and 6 deletions

3
NEWS
View File

@ -1,9 +1,10 @@
procps-ng-3.3.14 procps-ng-3.3.14
---------------- ----------------
* free: Fix scaling on 32-bit systems issue #89
* pgrep: Don't segfault on non match Debian #894917 * pgrep: Don't segfault on non match Debian #894917
* pgrep/pkill: Revert so matches all namespaces issue #91 * 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: Build on non-glibc systems issue #88
* library: Just check for SIGLOST and don't delete it issye #93
procps-ng-3.3.13 procps-ng-3.3.13
---------------- ----------------

View File

@ -52,10 +52,6 @@
# undef SIGSTKFLT # undef SIGSTKFLT
#endif #endif
#if !defined(__GNU__) && defined(SIGLOST)
# undef SIGLOST
#endif
#ifndef SIGRTMIN #ifndef SIGRTMIN
# warning Standards require that <signal.h> define SIGRTMIN; assuming 32 # warning Standards require that <signal.h> define SIGRTMIN; assuming 32
# define SIGRTMIN 32 # define SIGRTMIN 32
@ -87,7 +83,7 @@ static const mapstruct sigtable[] = {
{"ILL", SIGILL}, {"ILL", SIGILL},
{"INT", SIGINT}, {"INT", SIGINT},
{"KILL", SIGKILL}, {"KILL", SIGKILL},
#ifdef SIGLOST #if defined(__GNU__)
{"LOST", SIGLOST}, /* Hurd-specific */ {"LOST", SIGLOST}, /* Hurd-specific */
#endif #endif
{"PIPE", SIGPIPE}, {"PIPE", SIGPIPE},