MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / BBOTThread

Class BBOTThread

bbot/core/helpers/process.py:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class BBOTThread(threading.Thread):
10 default_name = "default bbot thread"
11
12 def __init__(self, *args, **kwargs):
13 self.custom_name = kwargs.pop("custom_name", self.default_name)
14 if "daemon" not in kwargs:
15 kwargs["daemon"] = True
16 super().__init__(*args, **kwargs)
17
18 def run(self):
19 from setproctitle import setthreadtitle
20
21 setthreadtitle(str(self.custom_name))
22 super().run()
23
24
25class BBOTProcess(SpawnProcess):

Callers 1

create_threadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…