summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r--Source/kwsys/ProcessUNIX.c8
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. */
}
}