<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 22/03/2012 23:48:52:<br>
<br>
> Hi all,<br>
> <br>
> I noticed that sometimes after suspending a session, or perhaps if
the<br>
</font></tt>
<br><tt><font size=2>Sometimes ?? Is it just random, or times of high load
etc.</font></tt>
<br>
<br><tt><font size=2>> client is just closed on the other end (e.g.
logout, client crash,<br>
> client reboot, etc), the /var/lib/nxserver/db/running/sessionId{}
file<br>
> for that session on the nx server sometimes is not written properly
(0<br>
> byted). Anyone know why this happens or if there's a fix?</font></tt>
<br><tt><font size=2><br>
[SNIP]</font></tt>
<br>
<br><tt><font size=2>I haven't seen that happening.</font></tt>
<br>
<br><tt><font size=2>If you choose to suspend the session,the</font></tt>
<br><tt><font size=2> . ./running/sessionID</font></tt>
<br><tt><font size=2>file should be updated to show :-</font></tt>
<br><tt><font size=2> status=Suspended</font></tt>
<br><tt><font size=2>If the client vanishes for whatever reason then it
mostly just gets</font></tt>
<br><tt><font size=2>left (un-updated) as :-</font></tt>
<br><tt><font size=2> status=Running</font></tt>
<br><tt><font size=2>so</font></tt>
<br><tt><font size=2>this sounds a bit like a /bin/bash-ism to me . . .</font></tt>
<br>
<br>
<br><tt><font size=2>However</font></tt>
<br>
<br><tt><font size=2>if you haven't had</font></tt>
<br>
<br><tt><font size=2> [ "$SERVER_CHANNEL"
= "1" ] && echo "$@"</font></tt>
<br><tt><font size=2> [ "$SERVER_CHANNEL"
= "2" ] && echo "$@" >&2</font></tt>
<br>
<br><tt><font size=2>to</font></tt>
<br>
<br><tt><font size=2> [ "$SERVER_CHANNEL"
= "1" ] && /bin/echo "$@"</font></tt>
<br><tt><font size=2> [ "$SERVER_CHANNEL"
= "2" ] && /bin/echo "$@" >&2</font></tt>
<br>
<br><tt><font size=2>in nxserver, you will get some incorrectly terminated</font></tt>
<br><tt><font size=2>nxagent sessions, if the NX-server doesn't hear from</font></tt>
<br><tt><font size=2>the nxclient for some time.</font></tt>
<br>
<br>
<br><tt><font size=2>You don't trouble us with any information about your</font></tt>
<br><tt><font size=2>distro/version so its difficult to say if you are
missing</font></tt>
<br><tt><font size=2>any updates.</font></tt>
<br>
<br>
<br><tt><font size=2>What do your</font></tt>
<br>
<br><tt><font size=2>/var/lib/nxserver/db/running/sessionId files
normally contain.</font></tt>
<br>
<br><tt><font size=2>Are you sure the files aren't being moved to</font></tt>
<br>
<br><tt><font size=2> /var/lib/nxserver/db/failed/sessionId</font></tt>
<br><tt><font size=2>or</font></tt>
<br><tt><font size=2> /var/lib/nxserver/db/closed/sessionId</font></tt>
<br>
<br><tt><font size=2>and a new 0 byte file created ??</font></tt>
<br>
<br>