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:
jimw@mysql.com 2005-04-26 08:20:51 -07:00
commit ef5ad50ccc
2 changed files with 3 additions and 1 deletions

View file

@ -1754,6 +1754,8 @@ AC_C_BIGENDIAN
MYSQL_TYPE_ACCEPT MYSQL_TYPE_ACCEPT
#---END: #---END:
# Figure out what type of struct rlimit to use with setrlimit
MYSQL_TYPE_STRUCT_RLIMIT
# Find where the stack goes # Find where the stack goes
MYSQL_STACK_DIRECTION MYSQL_STACK_DIRECTION
# We want to skip alloca on irix unconditionally. It may work on some version.. # We want to skip alloca on irix unconditionally. It may work on some version..

View file

@ -2022,7 +2022,7 @@ static void init_signals(void)
if (test_flags & TEST_CORE_ON_SIGNAL) if (test_flags & TEST_CORE_ON_SIGNAL)
{ {
/* Change limits so that we will get a core file */ /* Change limits so that we will get a core file */
struct rlimit rl; STRUCT_RLIMIT rl;
rl.rlim_cur = rl.rlim_max = RLIM_INFINITY; rl.rlim_cur = rl.rlim_max = RLIM_INFINITY;
if (setrlimit(RLIMIT_CORE, &rl) && global_system_variables.log_warnings) 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"); 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");