1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

output_core_info - freebsd rlimits in different proc entry

This commit is contained in:
Daniel Black
2020-03-27 14:45:42 +11:00
committed by Anel
parent 4197014ba0
commit abb0a31ec8

View File

@ -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)