[DRIVER] Portability fixup (#195)

This commit is contained in:
Philippe Tillet
2021-08-07 18:53:11 -07:00
committed by GitHub
parent 298da78058
commit 83da7065da

View File

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