[X2Go-Commits] [x2gobroker] 06/07: x2gobroker/agent.py: Avoid zombie x2gobroker-agent processes by terminating the process and emptying the communication buffers.

git-admin at x2go.org git-admin at x2go.org
Thu Sep 13 15:26:37 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gobroker.

commit 87e07e32a640b1e714bae5f3e943847f9a8ccc49
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu Sep 13 14:53:32 2018 +0200

    x2gobroker/agent.py: Avoid zombie x2gobroker-agent processes by terminating the process and emptying the communication buffers.
---
 x2gobroker/agent.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/x2gobroker/agent.py b/x2gobroker/agent.py
index 5aaa115..14620de 100644
--- a/x2gobroker/agent.py
+++ b/x2gobroker/agent.py
@@ -160,6 +160,8 @@ def _call_local_broker_agent(username, task, cmdline_args=[], logger=None):
         )
 
         result = agent_process.stdout.read().decode().split('\n')
+        agent_process.terminate()
+        agent_process.communicate()
     except OSError:
         result = None
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git


More information about the x2go-commits mailing list