Commit 36f84744 authored by Sergei Golubchik's avatar Sergei Golubchik

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"
parent c64a697b
......@@ -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
......
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