MCPcopy Create free account
hub / github.com/comaps/comaps / __init__

Method __init__

tools/python/test_server/server/SiblingKiller.py:19–26  ·  view source on GitHub ↗
(self, port, ping_timeout)

Source from the content-addressed store, hash-verified

17class SiblingKiller:
18
19 def __init__(self, port, ping_timeout):
20 self.all_processes = self.ps_dash_w()
21 self.all_pids = self.all_process_ids()
22 self.__allow_serving = False
23 self.__my_pid = self.my_process_id()
24 self.port = port
25 self.ping_timeout = ping_timeout
26 logging.debug(f"Sibling killer: my process id = {self.__my_pid}")
27
28
29 def allow_serving(self):

Callers

nothing calls this directly

Calls 3

ps_dash_wMethod · 0.95
all_process_idsMethod · 0.95
my_process_idMethod · 0.95

Tested by

no test coverage detected