MCPcopy Create free account
hub / github.com/Kitware/CMake / kwsysProcessCleanupHandle

Function kwsysProcessCleanupHandle

Source/kwsys/ProcessWin32.c:1843–1852  ·  view source on GitHub ↗

Close the given handle if it is open. Reset its value to 0. */

Source from the content-addressed store, hash-verified

1841
1842/* Close the given handle if it is open. Reset its value to 0. */
1843void kwsysProcessCleanupHandle(PHANDLE h)
1844{
1845 if (h && *h && *h != INVALID_HANDLE_VALUE &&
1846 *h != GetStdHandle(STD_INPUT_HANDLE) &&
1847 *h != GetStdHandle(STD_OUTPUT_HANDLE) &&
1848 *h != GetStdHandle(STD_ERROR_HANDLE)) {
1849 CloseHandle(*h);
1850 *h = INVALID_HANDLE_VALUE;
1851 }
1852}
1853
1854/* Close all handles created by kwsysProcess_Execute. */
1855void kwsysProcessCleanup(kwsysProcess* cp, DWORD error)

Callers 11

kwsysProcess_DeleteFunction · 0.85
kwsysProcess_ExecuteFunction · 0.85
kwsysProcess_WaitForDataFunction · 0.85
kwsysProcess_KillFunction · 0.85
kwsysProcessCreateFunction · 0.85
kwsysProcessDestroyFunction · 0.85
kwsysProcessCleanupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…