mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-04 20:36:20 -04:00
fix overload thread
This commit is contained in:
parent
5a8adeb758
commit
a7d86a1cf9
@ -627,7 +627,7 @@ namespace util
|
|||||||
int status = 0;
|
int status = 0;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
while (1) {
|
while (1) {
|
||||||
ret = waitpid(pid, &status, WNOHANG);
|
ret = waitpid(pid, &status, 0);
|
||||||
if (ret == -1) break;
|
if (ret == -1) break;
|
||||||
if (ret == 0) continue;
|
if (ret == 0) continue;
|
||||||
return std::make_pair(ret, status);
|
return std::make_pair(ret, status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user