summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <igreenhoe@mysql.com>2006-04-17 19:57:50 -0700
committerunknown <igreenhoe@mysql.com>2006-04-17 19:57:50 -0700
commit2664605c04ad7ccc5fc2977026cbd62f9d86f0cc (patch)
tree15cd37a37417b3ed8e12f2b15eff9f55cd934fd4 /scripts
parentbf8f30b532ef217dac2a168124706d28e19a320f (diff)
downloadmariadb-git-2664605c04ad7ccc5fc2977026cbd62f9d86f0cc.tar.gz
Fix for bug #17353.
scripts/mysqld_safe.sh: Moved core file changing command outside of root-user only conditional
Diffstat (limited to 'scripts')
-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
#