diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-17 19:29:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-01-17 19:29:11 (GMT) |
commit | e6e98b47da42835544fc817a44c43c9896994706 (patch) | |
tree | 6d0df0e96e897d5c93fa62d4eda10f4d978f25bb /Source/cmWin32ProcessExecution.h | |
parent | 5573da922f2354e6f8b098c04238b16a11cf9f03 (diff) | |
download | CMake-e6e98b47da42835544fc817a44c43c9896994706.zip CMake-e6e98b47da42835544fc817a44c43c9896994706.tar.gz CMake-e6e98b47da42835544fc817a44c43c9896994706.tar.bz2 |
BUG: make sure handles are always closed even if Wait is not called.
Diffstat (limited to 'Source/cmWin32ProcessExecution.h')
-rw-r--r-- | Source/cmWin32ProcessExecution.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmWin32ProcessExecution.h b/Source/cmWin32ProcessExecution.h index 822999c..6f6d8b7 100644 --- a/Source/cmWin32ProcessExecution.h +++ b/Source/cmWin32ProcessExecution.h @@ -49,6 +49,7 @@ public: this->SetConsoleSpawn("w9xpopen.exe"); this->Initialize(); } + ~cmWin32ProcessExecution(); ///! If true windows will be created hidden. void SetHideWindows(bool v) { m_HideWindows = v; } @@ -139,6 +140,7 @@ public: int timeout, bool hideWindows); private: + bool CloseHandles(); bool PrivateOpen(const char*, const char*, int, int); bool PrivateClose(int timeout); |