mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MTR : improve detection of handles.exe on Windows.
Depending on version, "handle.exe -?" can output either "Handle v4.0" or "Nthandle v4.1"
This commit is contained in:
@@ -32,8 +32,8 @@ if (IS_WINDOWS){
|
|||||||
my $list= `handle.exe -? -accepteula 2>&1`;
|
my $list= `handle.exe -? -accepteula 2>&1`;
|
||||||
foreach my $line (split('\n', $list))
|
foreach my $line (split('\n', $list))
|
||||||
{
|
{
|
||||||
$handle_exe= "$1.$2"
|
$handle_exe= "$2.$3"
|
||||||
if ($line =~ /Handle v([0-9]*)\.([0-9]*)/);
|
if ($line =~ /(Nth|H)andle v([0-9]*)\.([0-9]*)/);
|
||||||
}
|
}
|
||||||
if ($handle_exe){
|
if ($handle_exe){
|
||||||
print "Found handle.exe version $handle_exe\n";
|
print "Found handle.exe version $handle_exe\n";
|
||||||
|
Reference in New Issue
Block a user