mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
Merge mysql.com:/home/jimw/my/mysql-4.1-9063
into mysql.com:/home/jimw/my/mysql-5.0-build
This commit is contained in:
commit
ef5ad50ccc
2 changed files with 3 additions and 1 deletions
|
@ -1754,6 +1754,8 @@ AC_C_BIGENDIAN
|
|||
MYSQL_TYPE_ACCEPT
|
||||
|
||||
#---END:
|
||||
# Figure out what type of struct rlimit to use with setrlimit
|
||||
MYSQL_TYPE_STRUCT_RLIMIT
|
||||
# Find where the stack goes
|
||||
MYSQL_STACK_DIRECTION
|
||||
# We want to skip alloca on irix unconditionally. It may work on some version..
|
||||
|
|
|
@ -2022,7 +2022,7 @@ static void init_signals(void)
|
|||
if (test_flags & TEST_CORE_ON_SIGNAL)
|
||||
{
|
||||
/* Change limits so that we will get a core file */
|
||||
struct rlimit rl;
|
||||
STRUCT_RLIMIT rl;
|
||||
rl.rlim_cur = rl.rlim_max = RLIM_INFINITY;
|
||||
if (setrlimit(RLIMIT_CORE, &rl) && global_system_variables.log_warnings)
|
||||
sql_print_warning("setrlimit could not change the size of core files to 'infinity'; We may not be able to generate a core file on signals");
|
||||
|
|
Loading…
Reference in a new issue