summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-11-10 12:48:52 +0100
committerSergei Golubchik <serg@mariadb.org>2017-11-10 12:48:52 +0100
commit36f84744031430747d27bfb2087c7ae51019a70a (patch)
tree75defe805e87c60a1f96affb2193e99170eb2d2c /scripts
parentc64a697bba4c39d02c8dd6bdca6762e216579f3a (diff)
downloadmariadb-git-36f84744031430747d27bfb2087c7ae51019a70a.tar.gz
MDEV-14337 mysqld_safe may suppress error messages with --log-output=file
don't close stdout/stderr, redirect them to /dev/null instead. otherwise redirections like >&2 fail with "invalid file descriptor"
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysqld_safe.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index b644184b1e1..46b37689093 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -868,8 +868,8 @@ if expr "${-}" : '.*x' > /dev/null
then
:
else
- exec 1>&-
- exec 2>&-
+ exec 1>/dev/null
+ exec 2>/dev/null
fi
while true