Spawn a daemon process using a double subprocess.Popen.
(args: Sequence[str])
| 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).""" |
no test coverage detected