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

Method create_process

bbot/core/core.py:201–214  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

199 return self._files_config
200
201 def create_process(self, *args, **kwargs):
202 if os.environ.get("BBOT_TESTING", "") == "True":
203 process = self.create_thread(*args, **kwargs)
204 else:
205 if SHARED_INTERPRETER_STATE.is_scan_process:
206 from .helpers.process import BBOTProcess
207
208 process = BBOTProcess(*args, **kwargs)
209 else:
210 import multiprocessing
211
212 raise BBOTError(f"Tried to start server from process {multiprocessing.current_process().name}")
213 process.daemon = True
214 return process
215
216 def create_thread(self, *args, **kwargs):
217 from .helpers.process import BBOTThread

Callers 1

start_serverMethod · 0.80

Calls 4

create_threadMethod · 0.95
BBOTErrorClass · 0.90
BBOTProcessClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected