[X2Go-Commits] [x2goserver] 03/04: add syslog warning if X11 socket file cleanup occurs
git-admin at x2go.org
git-admin at x2go.org
Fri Oct 3 14:41:16 CEST 2014
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goserver.
commit 42e361f74457d5d7c61048809a31c49808732c93
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Oct 3 14:03:36 2014 +0200
add syslog warning if X11 socket file cleanup occurs
---
x2goserver/sbin/x2gocleansessions | 2 ++
1 file changed, 2 insertions(+)
diff --git a/x2goserver/sbin/x2gocleansessions b/x2goserver/sbin/x2gocleansessions
index a0f27a0..54fee76 100755
--- a/x2goserver/sbin/x2gocleansessions
+++ b/x2goserver/sbin/x2gocleansessions
@@ -167,6 +167,7 @@ elsif ($pid == 0 )
my $display = @sinfo[3];
if (-S "/tmp/.X11-unix/X$display") {
# remove the NX-X11 socket file (as the agent will not have managed after a kill -9)
+ syslog('warning', "@sinfo[1], pid @sinfo[0] cleaning up stale X11 socket file: /tmp/.X11-unix/X$display");
File::Remove::remove("/tmp/.X11-unix/X$display");
}
delete $remembered_sessions_since{@sinfo[1]};
@@ -182,6 +183,7 @@ elsif ($pid == 0 )
if (-S "/tmp/.X11-unix/X$display") {
# remove the NX-X11 socket file (we don't know how the agent disappeared,
# someone might have shot it with kill -9)
+ syslog('warning', "@sinfo[1], pid @sinfo[0] cleaning up stale X11 socket file: /tmp/.X11-unix/X$display");
File::Remove::remove("/tmp/.X11-unix/X$display");
}
syslog('debug', "@sinfo[1], pid @sinfo[0] does not exist, changing status from @sinfo[4] to F");
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list