Commit 6ad3dd60 authored by Sergei Golubchik's avatar Sergei Golubchik

mysqld_safe: don't close stdout if set -x

parent 3e63fde5
......@@ -864,8 +864,13 @@ max_fast_restarts=5
have_sleep=1
# close stdout and stderr, everything goes to $logging now
exec 1>&-
exec 2>&-
if expr "${-}" : '.*x' > /dev/null
then
:
else
exec 1>&-
exec 2>&-
fi
while true
do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment