MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / _start_detached

Function _start_detached

seleniumbase/undetected/dprocess.py:39–53  ·  view source on GitHub ↗
(executable, *args, writer=None)

Source from the content-addressed store, hash-verified

37
38
39def _start_detached(executable, *args, writer=None):
40 # Configure Launch
41 kwargs = {}
42 if platform.system() == "Windows":
43 kwargs.update(
44 creationflags=DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP
45 )
46 else:
47 kwargs.update(start_new_session=True)
48 p = Popen(
49 [executable, *args], stdin=PIPE, stdout=PIPE, stderr=PIPE, **kwargs
50 )
51 # Send pid to pipe
52 writer.send(p.pid)
53 sys.exit()
54
55
56def _cleanup():

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…