COMP: Fix code-not-reached warnings for SunCC.

This commit is contained in:
Brad King
2007-05-03 13:03:13 -04:00
parent 44ab336a0c
commit aa4d7847ee
3 changed files with 16 additions and 7 deletions
+7 -1
View File
@@ -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. */
}
}