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

Function kwsysProcess_Disown

Source/kwsys/ProcessUNIX.c:1046–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044}
1045
1046kwsysEXPORT void kwsysProcess_Disown(kwsysProcess* cp)
1047{
1048 /* Make sure a detached child process is running. */
1049 if (!cp || !cp->Detached || cp->State != kwsysProcess_State_Executing ||
1050 cp->TimeoutExpired || cp->Killed) {
1051 return;
1052 }
1053
1054 /* Close all the pipes safely. */
1055 kwsysProcessClosePipes(cp);
1056
1057 /* We will not wait for exit, so cleanup now. */
1058 kwsysProcessCleanup(cp, 0);
1059
1060 /* The process has been disowned. */
1061 cp->State = kwsysProcess_State_Disowned;
1062}
1063
1064typedef struct kwsysProcessWaitData_s
1065{

Callers 2

runChild2Function · 0.70
kwsysProcess_DeleteFunction · 0.70

Calls 2

kwsysProcessClosePipesFunction · 0.85
kwsysProcessCleanupFunction · 0.70

Tested by 1

runChild2Function · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…