mysqld_safe: don't close stdout if set -x
This commit is contained in:
parent
3e63fde52e
commit
6ad3dd6054
@ -864,8 +864,13 @@ max_fast_restarts=5
|
|||||||
have_sleep=1
|
have_sleep=1
|
||||||
|
|
||||||
# close stdout and stderr, everything goes to $logging now
|
# close stdout and stderr, everything goes to $logging now
|
||||||
exec 1>&-
|
if expr "${-}" : '.*x' > /dev/null
|
||||||
exec 2>&-
|
then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
exec 1>&-
|
||||||
|
exec 2>&-
|
||||||
|
fi
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user