You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.3 KiB

  1. diff --git a/configure.ac b/configure.ac
  2. index e70edc2..5d8b716 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -58,9 +58,6 @@ AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdint.h stdlib.h syslog.h unistd.h])
  6. # Checks for typedefs, structures, and compiler characteristics.
  7. AC_C_INLINE
  8. AC_TYPE_PID_T
  9. -AC_CHECK_DECLS([sys_siglist], [], [
  10. - AC_MSG_ERROR([Unable to find sys_siglist declaration.])
  11. -], [[#include <signal.h>]])
  12. AC_TYPE_UINT32_T
  13. AC_TYPE_UINT16_T
  14. AC_TYPE_UINT8_T
  15. diff --git a/src/addrwatch.c b/src/addrwatch.c
  16. index 7647e02..93e1f61 100644
  17. --- a/src/addrwatch.c
  18. +++ b/src/addrwatch.c
  19. @@ -327,7 +327,7 @@ void reload_cb(evutil_socket_t fd, short events, void *arg)
  20. void reload_cb(int fd, short events, void *arg)
  21. #endif
  22. {
  23. - log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, sys_siglist[fd]);
  24. + log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, strsignal(fd));
  25. log_msg(LOG_DEBUG, "Reopening output files");
  26. output_flatfile_reload();
  27. @@ -341,7 +341,7 @@ void stop_cb(evutil_socket_t fd, short events, void *arg)
  28. void stop_cb(int fd, short events, void *arg)
  29. #endif
  30. {
  31. - log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, sys_siglist[fd]);
  32. + log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, strsignal(fd));
  33. #if HAVE_LIBEVENT2
  34. event_base_loopbreak(cfg.eb);
  35. #else