mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
COMP: Fix code-not-reached warnings for SunCC.
This commit is contained in:
@@ -2227,6 +2227,12 @@ static void kwsysProcessRestoreDefaultSignalHandlers(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
static void kwsysProcessExit(void)
|
||||
{
|
||||
_exit(0);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
static pid_t kwsysProcessFork(kwsysProcess* cp,
|
||||
kwsysProcessCreateInformation* si)
|
||||
@@ -2257,7 +2263,7 @@ static pid_t kwsysProcessFork(kwsysProcess* cp,
|
||||
(errno == EINTR));
|
||||
|
||||
/* Exit without cleanup. The parent holds all resources. */
|
||||
_exit(0);
|
||||
kwsysProcessExit();
|
||||
return 0; /* Never reached, but avoids SunCC warning. */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user