summaryrefslogtreecommitdiff
path: root/scripts/mysqld_safe.sh
diff options
context:
space:
mode:
authorigreenhoe@mysql.com <>2006-04-17 19:57:50 -0700
committerigreenhoe@mysql.com <>2006-04-17 19:57:50 -0700
commited2432494ff892eb255a75a5bc9460afc9e03ec7 (patch)
tree15cd37a37417b3ed8e12f2b15eff9f55cd934fd4 /scripts/mysqld_safe.sh
parent592dc88be75fcad1129e053820bd326aeb114cb4 (diff)
downloadmariadb-git-ed2432494ff892eb255a75a5bc9460afc9e03ec7.tar.gz
Fix for bug #17353.
Diffstat (limited to 'scripts/mysqld_safe.sh')
-rw-r--r--scripts/mysqld_safe.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index a584c384712..02a961dc3ec 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -321,10 +321,13 @@ then
ulimit -n $open_files
args="--open-files-limit=$open_files $args"
fi
- if test -n "$core_file_size"
- then
- ulimit -c $core_file_size
- fi
+fi
+
+# Try to set the core file size (even if we aren't root) because many systems
+# don't specify a hard limit on core file size.
+if test -n "$core_file_size"
+then
+ ulimit -c $core_file_size
fi
#