diff options
author | unknown <igreenhoe@mysql.com> | 2006-04-17 19:57:50 -0700 |
---|---|---|
committer | unknown <igreenhoe@mysql.com> | 2006-04-17 19:57:50 -0700 |
commit | 2664605c04ad7ccc5fc2977026cbd62f9d86f0cc (patch) | |
tree | 15cd37a37417b3ed8e12f2b15eff9f55cd934fd4 /scripts | |
parent | bf8f30b532ef217dac2a168124706d28e19a320f (diff) | |
download | mariadb-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.sh | 11 |
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 # |