mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-21062 Buildbot, Windows - sporadically missing lines from mtr's "exec"
Provide own version of popen/pclose, in attempt to workaround sporadic erratic behavior of UCRT's one.
This commit is contained in:
@@ -383,7 +383,7 @@ static int run_command(char* cmd,
|
||||
if (opt_verbose >= 4)
|
||||
puts(cmd);
|
||||
|
||||
if (!(res_file= popen(cmd, "r")))
|
||||
if (!(res_file= my_popen(cmd, IF_WIN("rt","r"))))
|
||||
die("popen(\"%s\", \"r\") failed", cmd);
|
||||
|
||||
while (fgets(buf, sizeof(buf), res_file))
|
||||
@@ -401,7 +401,7 @@ static int run_command(char* cmd,
|
||||
}
|
||||
}
|
||||
|
||||
error= pclose(res_file);
|
||||
error= my_pclose(res_file);
|
||||
return WEXITSTATUS(error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user