aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/X
diff options
context:
space:
mode:
authorOleksandr Shneyder <o.shneyder@phoca-gmbh.de>2015-02-10 19:43:41 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-02-10 19:43:41 +0100
commit8c1b852abf692af4898368132292eb8c7278a7c2 (patch)
tree71be8528bc49423444534c510f9c4e1e23a7eff7 /nx-X11/programs/Xserver/hw/nxagent/X
parent4a6ccd5037c8410f24dc177c9286272c2f47cd9d (diff)
downloadnx-libs-8c1b852abf692af4898368132292eb8c7278a7c2.tar.gz
nx-libs-8c1b852abf692af4898368132292eb8c7278a7c2.tar.bz2
nx-libs-8c1b852abf692af4898368132292eb8c7278a7c2.zip
Save session state in file.
210_nxagent_save_session_state.full.patch 210_nxcomp_save_session_state.full+lite.patch This patch adds a "state" option to NX (agent) which allows one to specify a file where nxagent will write its session state into.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/X')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c
index 69ad30d2d..f18c09fe4 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c
@@ -609,6 +609,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
#endif
nxagentSessionState = SESSION_UP;
+ saveAgentState("RUNNING");
}
#ifdef BLOCKS
@@ -823,6 +824,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
*/
fprintf(stderr, "Session: Terminating session at '%s'.\n", GetTimeAsString());
+ saveAgentState("TERMINATING");
nxagentWaitDisplay();
@@ -833,6 +835,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
{
NXShadowDestroy();
}
+ saveAgentState("TERMINATED");
KillAllClients();
DEALLOCATE_LOCAL(clientReady);