diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-24 01:33:05 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-24 11:49:28 +0200 |
commit | ca7046dc19d8bbb5916c89d9e98e9d4632294fa8 (patch) | |
tree | 1dd01cce606bc79e2516519b4e47ea5855288e0d /include | |
parent | 4bfdba2e89ce825a9f89b2e6ed7eca3e0ce2c128 (diff) | |
download | mariadb-git-ca7046dc19d8bbb5916c89d9e98e9d4632294fa8.tar.gz |
MDEV-11499 mysqltest, Windows : improve diagnostics if server fails to shutdown
Create minidump when server fails to shutdown. If process is being
debugged, cause a debug break.
Moves some code which is part of safe_kill into mysys, as both safe_kill,
and mysqltest produce minidumps on different timeouts.
Small cleanup in wait_until_dead() - replace inefficient loop with a single
wait.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_minidump.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/my_minidump.h b/include/my_minidump.h new file mode 100644 index 00000000000..0c0e843be8c --- /dev/null +++ b/include/my_minidump.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2021, MariaDB Corporation + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ + +#include <windows.h> +#ifdef __cplusplus +extern "C" { +#endif + +BOOL my_create_minidump(DWORD pid, BOOL verbose); + +#ifdef __cplusplus +} +#endif |