#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
g_strsignal (WTERMSIG (res)));
}
else {
+#ifdef HAVE_SYS_RESOURCE_H
struct rlimit rlmt;
(void)getrlimit (RLIMIT_CORE, &rlmt);
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 (