arun11299 / cpp-subprocess

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

Fix for poll() function on windows #56

Closed DrakkLord closed 4 years ago

DrakkLord commented 4 years ago

When compiling on windows the poll() function checks childcreated value which exists but it's never set to to true, the only code paths that ever set it to true are not compiled on windows so this effectively makes the function always return -1. After this change processes on windows return the proper exit code.