From 83da7065da66a5c3800d62a8fb24ea0dd9d739bd Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Sat, 7 Aug 2021 18:53:11 -0700 Subject: [PATCH] [DRIVER] Portability fixup (#195) --- include/triton/tools/sys/exec.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/triton/tools/sys/exec.hpp b/include/triton/tools/sys/exec.hpp index 63e27609c..243f0f482 100644 --- a/include/triton/tools/sys/exec.hpp +++ b/include/triton/tools/sys/exec.hpp @@ -27,7 +27,8 @@ int exec(const std::string& cmd, std::string& result) { pclose(pipe); return 0; } - return WEXITSTATUS(pclose(pipe)); + int status = pclose(pipe); + return WEXITSTATUS(status); }