diff options
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 4f522d96a9f..fc45a7d75c1 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -132,6 +132,7 @@ #define mysqld_charset &my_charset_latin1 +#include <thread> extern "C" { // Because of SCO 3.2V4.2 #include <sys/stat.h> @@ -5226,8 +5227,12 @@ static void test_lc_time_sz() #endif//DBUG_OFF +std::thread::id main_thread_id; + int mysqld_main(int argc, char **argv) { + main_thread_id = std::this_thread::get_id(); + #ifndef _WIN32 /* We can't close stdin just now, because it may be booststrap mode. */ bool please_close_stdin= fcntl(STDIN_FILENO, F_GETFD) >= 0; |