From a51fca49bfc29ca25b4003028b8b2d3bd4fde7ca 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 (cherry picked from commit 2bf1b29e8e391361899d6ea9e5272e5939ea68da) --- 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 2c712cee4..8d84a95c5 100644 --- a/src/borg/platform/posix.pyx +++ b/src/borg/platform/posix.pyx @@ -30,6 +30,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