mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 12:56:23 -04:00
fix overload thread (#92)
Co-authored-by: Anton Nikolayev <anton.nikolayev@ringcentral.com>
This commit is contained in:
parent
64f4dfc2e5
commit
d809374661
@ -631,7 +631,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user