• Vladislav Vaintroub's avatar
    MDEV-9466 : Exception handler on Windows does not output any text, · 603c0960
    Vladislav Vaintroub authored
    if mysqld runs as service
    
    The bug is caused by the attempt to write to filedescriptor 2
    (STDERR_FILENO), however in case of a service stderr has different fd
    (debugging shows fileno(stderr) is 4 after freopen, and -1 before it)
    
    Fixed definition of STDERR_FILENO for Windows to be fileno(stderr).
    603c0960
my_global.h 47.2 KB