MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_win_close_spawn_handles

Function cbm_win_close_spawn_handles

src/foundation/subprocess.c:928–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928static void cbm_win_close_spawn_handles(HANDLE nul, HANDLE input, HANDLE log, HANDLE stdout_capture,
929 LPPROC_THREAD_ATTRIBUTE_LIST attrs, bool attrs_init) {
930 if (attrs) {
931 if (attrs_init) {
932 DeleteProcThreadAttributeList(attrs);
933 }
934 free(attrs);
935 }
936 if (stdout_capture != INVALID_HANDLE_VALUE) {
937 CloseHandle(stdout_capture);
938 }
939 if (log != INVALID_HANDLE_VALUE) {
940 CloseHandle(log);
941 }
942 if (input != INVALID_HANDLE_VALUE) {
943 CloseHandle(input);
944 }
945 if (nul != INVALID_HANDLE_VALUE) {
946 CloseHandle(nul);
947 }
948}
949
950static int cbm_subprocess_spawn_win(cbm_subprocess_t *process) {
951 char cmdline[8192];

Callers 1

cbm_subprocess_spawn_winFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected