From a7d86a1cf97a759f860b5c20015bc7dd9b620dcf Mon Sep 17 00:00:00 2001 From: Anton Nikolayev Date: Fri, 25 Aug 2023 13:17:18 +0200 Subject: [PATCH] fix overload thread --- subprocess.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprocess.hpp b/subprocess.hpp index 6f91090..4d93b40 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -627,7 +627,7 @@ namespace util int status = 0; int ret = -1; while (1) { - ret = waitpid(pid, &status, WNOHANG); + ret = waitpid(pid, &status, 0); if (ret == -1) break; if (ret == 0) continue; return std::make_pair(ret, status);