Close the given handle if it is open. Reset its value to 0. */
| 1841 | |
| 1842 | /* Close the given handle if it is open. Reset its value to 0. */ |
| 1843 | void 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. */ |
| 1855 | void kwsysProcessCleanup(kwsysProcess* cp, DWORD error) |
no outgoing calls
no test coverage detected
searching dependent graphs…