This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2goserver. from a1a9c45 Revert "follow-up commit for a01baa88f8616f305525012b88af14c60ba4bb65" new a322d8c now really fix the file descriptor closures The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: x2goserver/sbin/x2gocleansessions | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goserver. commit a322d8c7a4bd0e6d5a4dce09bbb076275516740b Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sat Mar 8 22:58:14 2014 +0100 now really fix the file descriptor closures --- x2goserver/sbin/x2gocleansessions | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/x2goserver/sbin/x2gocleansessions b/x2goserver/sbin/x2gocleansessions index cff334f..45db2cb 100755 --- a/x2goserver/sbin/x2gocleansessions +++ b/x2goserver/sbin/x2gocleansessions @@ -26,6 +26,7 @@ $ENV{'PATH'} = "/bin:/sbin:/usr/bin:/usr/sbin"; use Sys::Hostname; use Sys::Syslog qw( :standard :macros ); +use POSIX; use File::ReadBackwards; @@ -93,7 +94,24 @@ elsif ($pid == 0 ) my $superenice_ignoredusers=$Config->param("superenicer.ignored-users"); # close any open file descriptor left open by our parent before the fork - for (glob "/proc/$$/fd/*") { POSIX::close($_) if m{/(\d+)$}; } + my $fd; + for (glob "/proc/$$/fd/*") { + if ($_ =~ m/\/proc\/(\d+)\/fd\/(\d+)/) { + $fd = $2; + if ( $fd == 0 ) { next; } + if ( $fd == 1 ) { next; } + if (POSIX::close($fd)) { + print ""; + #print "Closed:II$_\n"; + } else { + print ""; + #print "Error Closing:I$_\n"; + } + } else { + print ""; + #print "ERROR: $_\n"; + } + } $SIG{TERM}=\&catch_term; $SIG{CHLD} = sub { wait }; -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git