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

Function kwsysProcessKillTree

Source/kwsys/ProcessWin32.c:2509–2522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2507}
2508
2509static void kwsysProcessKillTree(int pid)
2510{
2511 kwsysProcess_List* plist = kwsysProcess_List_New();
2512 kwsysProcessKill(pid);
2513 if (plist) {
2514 do {
2515 if (kwsysProcess_List_GetCurrentParentId(plist) == pid) {
2516 int ppid = kwsysProcess_List_GetCurrentProcessId(plist);
2517 kwsysProcessKillTree(ppid);
2518 }
2519 } while (kwsysProcess_List_NextProcess(plist));
2520 kwsysProcess_List_Delete(plist);
2521 }
2522}
2523
2524static void kwsysProcessDisablePipeThreads(kwsysProcess* cp)
2525{

Callers 2

kwsysProcess_KillFunction · 0.85
kwsysProcess_KillPIDFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…