Skip to content

Commit 36f8474

Browse files
committed
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"
1 parent c64a697 commit 36f8474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/mysqld_safe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,8 @@ if expr "${-}" : '.*x' > /dev/null
868868
then
869869
:
870870
else
871-
exec 1>&-
872-
exec 2>&-
871+
exec 1>/dev/null
872+
exec 2>/dev/null
873873
fi
874874

875875
while true

0 commit comments

Comments
 (0)