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:
@ -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;
|
||||
|
Reference in New Issue
Block a user