mysqld_safe: don't close stdout if set -x

This commit is contained in:
Sergei Golubchik 2017-01-10 14:19:11 +01:00
parent 3e63fde52e
commit 6ad3dd6054

View File

@ -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