mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-27 12:54:05 -04:00
process_alive: add some assertions
(cherry picked from commit 2bf1b29e8e)
This commit is contained in:
parent
a7e408db61
commit
a51fca49bf
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue