]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
process.py: Explicitly convert child to starting
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 23 Feb 2022 17:39:01 +0000 (10:39 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 23 Feb 2022 17:39:01 +0000 (10:39 -0700)
When killing the child processes, explicitly convert
them to strings.

Suggested-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/process.py

index 222880274307717648054dd67d46877d921dbb75..5aa0fefc38996a2f97e90a18a69cdbe8950a08b6 100644 (file)
@@ -179,9 +179,9 @@ class Process(object):
         for child in self.children_pids:
             try:
                 if config.args.container:
-                    config.container.run(['kill', child])
+                    config.container.run(['kill', str(child)])
                 else:
-                    Run.run(['kill', child])
+                    Run.run(['kill', str(child)])
             except (RunError, ContainerError):
                 # ignore any errors during the kill command.  this is belt
                 # and suspenders code