MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _spawn_daemon_double_popen

Function _spawn_daemon_double_popen

pymongo/daemon.py:111–118  ·  view source on GitHub ↗

Spawn a daemon process using a double subprocess.Popen.

(args: Sequence[str])

Source from the content-addressed store, hash-verified

109 return None
110
111 def _spawn_daemon_double_popen(args: Sequence[str]) -> None:
112 """Spawn a daemon process using a double subprocess.Popen."""
113 spawner_args = [sys.executable, _THIS_FILE]
114 spawner_args.extend(args)
115 temp_proc = subprocess.Popen(spawner_args, close_fds=True) # noqa: S603
116 # Reap the intermediate child process to avoid creating zombie
117 # processes.
118 _popen_wait(temp_proc, _WAIT_TIMEOUT)
119
120 def _spawn_daemon(args: Sequence[str]) -> None:
121 """Spawn a daemon process (Unix)."""

Callers 1

_spawn_daemonFunction · 0.85

Calls 1

_popen_waitFunction · 0.85

Tested by

no test coverage detected