mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-12144 Signal 6 crash corrupts ibd files
Avoid using STDERR_FILENO. The server uses freopen(stderr), so stderr can be on any file descriptor.
This commit is contained in:
@@ -744,7 +744,7 @@ void my_safe_print_str(const char *val, int len)
|
||||
|
||||
size_t my_write_stderr(const void *buf, size_t count)
|
||||
{
|
||||
return (size_t) write(STDERR_FILENO, buf, count);
|
||||
return (size_t) write(fileno(stderr), buf, count);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user