We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bec886 commit bf4289cCopy full SHA for bf4289c
subprocess.hpp
@@ -1330,6 +1330,7 @@ class Popen
1330
1331
#ifdef __USING_WINDOWS__
1332
HANDLE process_handle_;
1333
+ std::future<void> cleanup_future_;
1334
#endif
1335
1336
bool defer_process_start_ = false;
@@ -1555,7 +1556,7 @@ inline void Popen::execute_process() noexcept(false)
1555
1556
1557
this->process_handle_ = piProcInfo.hProcess;
1558
- std::async(std::launch::async, [this] {
1559
+ this->cleanup_future_ = std::async(std::launch::async, [this] {
1560
WaitForSingleObject(this->process_handle_, INFINITE);
1561
1562
CloseHandle(this->stream_.g_hChildStd_ERR_Wr);
0 commit comments