aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Weth <git@jonathanweth.de>2020-07-29 14:28:34 +0200
committerJonathan Weth <git@jonathanweth.de>2020-07-29 14:28:34 +0200
commit7dc7a503fbf1bf80a4c6afdb34335a5c6fcad38c (patch)
treee0581e8c6e28f871fb22b1670d28e8f8bf492841
parentfe55e46ac5d20c13cc4a4a3467b1fca1fe7db288 (diff)
downloadRWA.Support.SessionService-7dc7a503fbf1bf80a4c6afdb34335a5c6fcad38c.tar.gz
RWA.Support.SessionService-7dc7a503fbf1bf80a4c6afdb34335a5c6fcad38c.tar.bz2
RWA.Support.SessionService-7dc7a503fbf1bf80a4c6afdb34335a5c6fcad38c.zip
Use SIGINT instead of SIGTERM to kill sub processes
-rw-r--r--session.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.py b/session.py
index 71650d8..37dba55 100644
--- a/session.py
+++ b/session.py
@@ -204,12 +204,12 @@ class Session:
# Kill websockify
if self.ws_pid in psutil.pids():
- os.kill(self.ws_pid, signal.SIGTERM)
+ os.kill(self.ws_pid, signal.SIGINT)
logging.info("The websockify server has been terminated.")
# Kill VNC
if self.vnc_pid in psutil.pids():
- os.kill(self.vnc_pid, signal.SIGTERM)
+ os.kill(self.vnc_pid, signal.SIGINT)
logging.info("The VNC server has been terminated.")
# Delete PW file