fix closer
This commit is contained in:
@@ -54,7 +54,7 @@ namespace hack::utils
|
|||||||
{
|
{
|
||||||
std::string result;
|
std::string result;
|
||||||
std::array<char, 1024> buffer;
|
std::array<char, 1024> buffer;
|
||||||
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose);
|
std::unique_ptr<FILE, int(*)(FILE*)> pipe(popen(cmd.c_str(), "r"), pclose);
|
||||||
|
|
||||||
if (!pipe) throw std::runtime_error("bash cmd failed");
|
if (!pipe) throw std::runtime_error("bash cmd failed");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user