mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-09-08 23:08:12 -04:00
fix for poll() function where the _child_created value is only ever set when not compiling on windows so on windows it should be omitted (#56)
This commit is contained in:
parent
f1a698b50e
commit
2f6bb248c6
@ -1299,7 +1299,10 @@ inline int Popen::wait() noexcept(false)
|
||||
inline int Popen::poll() noexcept(false)
|
||||
{
|
||||
int status;
|
||||
|
||||
#ifndef _MSC_VER
|
||||
if (!child_created_) return -1; // TODO: ??
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
int ret = WaitForSingleObject(process_handle_, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user