Pārlūkot izejas kodu

[Minor] Fix build

tags/1.8.1
Vsevolod Stakhov pirms 5 gadiem
vecāks
revīzija
d46976e9fb
1 mainītis faili ar 13 papildinājumiem un 0 dzēšanām
  1. 13
    0
      src/rspamd.c

+ 13
- 0
src/rspamd.c Parādīt failu

@@ -43,6 +43,9 @@
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#ifdef HAVE_LIBUTIL_H
#include <libutil.h>
#endif
@@ -1028,6 +1031,7 @@ rspamd_cld_handler (gint signo, short what, gpointer arg)
g_strsignal (WTERMSIG (res)));
}
else {
#ifdef HAVE_SYS_RESOURCE_H
struct rlimit rlmt;
(void)getrlimit (RLIMIT_CORE, &rlmt);

@@ -1041,6 +1045,15 @@ rspamd_cld_handler (gint signo, short what, gpointer arg)
cur->cores_throttled ? "yes" : "no",
(gint64)rlmt.rlim_cur,
(gint64)rlmt.rlim_max);
#else
msg_warn_main (
"%s process %P terminated abnormally by signal: %s"
" but NOT created core file (throttled=%s); ",
g_quark_to_string (cur->type),
cur->pid,
g_strsignal (WTERMSIG (res)),
cur->cores_throttled ? "yes" : "no");
#endif
}
#else
msg_warn_main (

Notiek ielāde…
Atcelt
Saglabāt