1
0
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:
Vladislav Vaintroub
2019-11-13 21:12:48 +01:00
parent 89ae01fd00
commit 6df0bb7d38
6 changed files with 206 additions and 24 deletions

View File

@@ -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);
}