mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#28012 Patch : IM crashes instead of reporting an error when mysqldpath is bad
On the windows platform, if an instance object failed to initialize during program start, the instance manager would crash. This could happen if an incorrect mysqld path was supplied in the defaults configuration file. The patch prevents the program from crashing and makes it show an error message instead.
This commit is contained in:
@ -48,11 +48,16 @@ typedef int pid_t;
|
||||
#define NEWLINE "\r\n"
|
||||
#define NEWLINE_LEN 2
|
||||
|
||||
const char CR = '\r';
|
||||
const char LF = '\n';
|
||||
|
||||
#else /* ! __WIN__ */
|
||||
|
||||
#define NEWLINE "\n"
|
||||
#define NEWLINE_LEN 1
|
||||
|
||||
const char LF = '\n';
|
||||
|
||||
#endif /* __WIN__ */
|
||||
|
||||
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H */
|
||||
|
Reference in New Issue
Block a user