aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/Children.cpp
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-11-13 09:27:53 +0100
committerReinhard Tartler <siretart@tauware.de>2011-11-13 09:27:53 +0100
commit477961678194817aaf1aaf3602f1c91d288a539d (patch)
treed66356753053a34f93b4f6059631e0f6c4eb298c /nxcomp/Children.cpp
parent799bf672a3588f205bd18ef39d9908069e0cd6d5 (diff)
downloadnx-libs-477961678194817aaf1aaf3602f1c91d288a539d.tar.gz
nx-libs-477961678194817aaf1aaf3602f1c91d288a539d.tar.bz2
nx-libs-477961678194817aaf1aaf3602f1c91d288a539d.zip
Imported nxcomp-3.4.0-6.tar.gznxcomp/3.4.0-6
Summary: Imported nxcomp-3.4.0-6.tar.gz Keywords: Imported nxcomp-3.4.0-6.tar.gz into Git repository
Diffstat (limited to 'nxcomp/Children.cpp')
-rw-r--r--nxcomp/Children.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/nxcomp/Children.cpp b/nxcomp/Children.cpp
index 7e824fb56..a19b882e8 100644
--- a/nxcomp/Children.cpp
+++ b/nxcomp/Children.cpp
@@ -1,6 +1,6 @@
/**************************************************************************/
/* */
-/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */
+/* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMP, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
@@ -69,7 +69,8 @@ extern void InstallSignals();
extern char *GetClientPath();
-extern int CheckParent(char *name, char *type, int parent);
+extern int CheckParent(const char *name, const char *type,
+ int parent);
#ifdef __sun
extern char **environ;
@@ -81,19 +82,23 @@ extern char **environ;
// have been disabled in the main process.
//
-static void SystemCleanup(char *name);
+static void SystemCleanup(const char *name);
//
// Release all objects allocated in the
// heap.
-static void MemoryCleanup(char *name);
+static void MemoryCleanup(const char *name);
//
// Remove 'name' from the environment.
//
-static int UnsetEnv(char *name);
+static int UnsetEnv(const char *name);
+
+static int NXTransKeeperHandler(int signal);
+static void NXTransKeeperCheck();
+
//
// Start a nxclient process in dialog mode.
@@ -926,7 +931,7 @@ int NXTransKeeper(int caches, int images, const char *root)
exit(0);
}
-void SystemCleanup(char *name)
+void SystemCleanup(const char *name)
{
#ifdef TEST
*logofs << name << ": Performing system cleanup in process "
@@ -942,7 +947,7 @@ void SystemCleanup(char *name)
InstallSignals();
}
-void MemoryCleanup(char *name)
+void MemoryCleanup(const char *name)
{
#ifdef TEST
*logofs << name << ": Performing memory cleanup in process "
@@ -977,7 +982,7 @@ void MemoryCleanup(char *name)
EnableSignals();
}
-int UnsetEnv(char *name)
+int UnsetEnv(const char *name)
{
int result;