]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
container: strip possible trailing newline from pid
authorRinigus <rinigus.git@gmail.com>
Wed, 27 Oct 2021 20:03:41 +0000 (23:03 +0300)
committerErfan Abdi <erfangplus@gmail.com>
Wed, 27 Oct 2021 20:13:21 +0000 (23:43 +0330)
Fixes #185

tools/actions/container_manager.py

index 898bb835b23c719ede24c695931ceb53928ecf35..ee91c522e423311bd7a33ed448bceb0854e111bd 100644 (file)
@@ -206,7 +206,7 @@ def stop(args):
         # Sensors
         if which("waydroid-sensord"):
             command = ["pidof", "waydroid-sensord"]
-            pid = tools.helpers.run.user(args, command, check=False, output_return=True)
+            pid = tools.helpers.run.user(args, command, check=False, output_return=True).strip()
             if pid:
                 command = ["kill", "-9", pid]
                 tools.helpers.run.user(args, command, check=False)