diff options
author | Daniel Black <daniel@linux.ibm.com> | 2020-03-27 14:45:42 +1100 |
---|---|---|
committer | Anel <an3l@users.noreply.github.com> | 2020-04-03 15:11:43 +0200 |
commit | abb0a31ec822b4f2a5fc2473657f6acf1284cbf2 (patch) | |
tree | 40c0ee7c0412b8de209c6bbb082d46e6503cd837 | |
parent | 4197014ba0ba8cb895f3b49b7fdf8bbfe9fca826 (diff) | |
download | mariadb-git-abb0a31ec822b4f2a5fc2473657f6acf1284cbf2.tar.gz |
output_core_info - freebsd rlimits in different proc entry
-rw-r--r-- | sql/signal_handler.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/signal_handler.cc b/sql/signal_handler.cc index cbf58bb6e57..467985c1270 100644 --- a/sql/signal_handler.cc +++ b/sql/signal_handler.cc @@ -57,7 +57,11 @@ static inline void output_core_info() my_safe_printf_stderr("Writing a core file...\nWorking directory at %.*s\n", (int) len, buff); } +#ifdef __FreeBSD__ + if ((fd= my_open("/proc/curproc/rlimit", O_RDONLY, MYF(0))) >= 0) +#else if ((fd= my_open("/proc/self/limits", O_RDONLY, MYF(0))) >= 0) +#endif { my_safe_printf_stderr("Resource Limits:\n"); while ((len= my_read(fd, (uchar*)buff, sizeof(buff), MYF(0))) > 0) |