diff options
author | Brad King <brad.king@kitware.com> | 2007-05-03 17:03:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-03 17:03:13 (GMT) |
commit | aa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701 (patch) | |
tree | ce675ae44005d9165ed6943fa1e0f1b7ae4d888f /Source/kwsys | |
parent | 44ab336a0c4afe9dab6e7d038aec9a27c7ee92c7 (diff) | |
download | CMake-aa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701.zip CMake-aa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701.tar.gz CMake-aa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701.tar.bz2 |
COMP: Fix code-not-reached warnings for SunCC.
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index cf44262..9917e50 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -2228,6 +2228,12 @@ static void kwsysProcessRestoreDefaultSignalHandlers(void) } /*--------------------------------------------------------------------------*/ +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. */ } } |