From 2bf1b29e8e391361899d6ea9e5272e5939ea68da Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 15 Jul 2018 13:44:03 +0200 Subject: [PATCH] process_alive: add some assertions --- src/borg/platform/posix.pyx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/borg/platform/posix.pyx b/src/borg/platform/posix.pyx index fe2039f83..0701ab9e8 100644 --- a/src/borg/platform/posix.pyx +++ b/src/borg/platform/posix.pyx @@ -25,6 +25,11 @@ def process_alive(host, pid, thread): from . import local_pid_alive from . import hostid + assert isinstance(host, str) + assert isinstance(hostid, str) + assert isinstance(pid, int) + assert isinstance(thread, int) + if host != hostid: return True