arun11299 / cpp-subprocess

Subprocessing with modern C++
Other
449 stars 90 forks source link

fix overload thread #92

Closed littlesoftware closed 11 months ago

littlesoftware commented 11 months ago

The purpose of the method is to wait for the process to complete. Because of the parameter WNOHANG, the process returned with a result of 0 and repeats the loop again. Thus, the wait method loads the thread by 100%.