Subject: Zombie processes caused by x2gocleansessions

From: Mike Gabriel <[email-masked]>
Date: Wed, 26 Sep 2012 09:51:05 +0200

Package: x2goserver
Severity: normal
Version: 3.1.1.4
Tags: pending

Stéphane Graber reported the issue below to the x2go-dev Mailing list...

----- Weitergeleitete Nachricht von [email-masked] -----
      Datum: Tue, 25 Sep 2012 22:44:16 -0400
        Von: Stéphane Graber <[email-masked]>
Antwort an: [email-masked]
    Betreff: [X2Go-Dev] x2gocleansessions not handling sigchld
         An: [email-masked]

Hello,

Running x2go 3.1.1.4-0~592~precise1 on 12.04, I'm still seeing
x2gocleansessions not properly cleaning up after its children, resulting
in a bunch of zombie processes.

I added a very basic SIGCHLD handler to the perl script and it seems to
have been doing the trick, at least for the past few hours.

I just added:
$SIG{CHLD} = sub { wait };

After the existing:
$SIG{TERM}=\&catch_term;

-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email-masked], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb