1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix mtr to create a process dump on Window for hanging or looping processes

This commit is contained in:
Vladislav Vaintroub
2017-10-13 19:40:06 +00:00
parent 9ee840cd0a
commit bcd1a08eb3
3 changed files with 87 additions and 3 deletions

View File

@ -336,9 +336,14 @@ sub start_kill {
sub dump_core {
my ($self)= @_;
return if IS_WINDOWS;
my $pid= $self->{SAFE_PID};
die "Can't get core from not started process" unless defined $pid;
if (IS_WINDOWS) {
system("$safe_kill $pid dump");
return 1;
}
_verbose("Sending ABRT to $self");
kill ("ABRT", $pid);
return 1;