MCPcopy
hub / github.com/treeverse/dvc / _detached_subprocess

Function _detached_subprocess

dvc/daemon.py:119–127  ·  view source on GitHub ↗

Run in a detached subprocess.

(args: Sequence[str], **kwargs)

Source from the content-addressed store, hash-verified

117
118
119def _detached_subprocess(args: Sequence[str], **kwargs) -> int:
120 """Run in a detached subprocess."""
121 kwargs.setdefault("stdin", subprocess.DEVNULL)
122 kwargs.setdefault("stdout", subprocess.DEVNULL)
123 kwargs.setdefault("stderr", subprocess.DEVNULL)
124
125 if os.name == "nt":
126 return _win_detached_subprocess(args, **kwargs)
127 return _posix_detached_subprocess(args, **kwargs)
128
129
130def _map_log_level_to_flag() -> Optional[str]:

Callers 1

_spawnFunction · 0.85

Calls 2

_win_detached_subprocessFunction · 0.85

Tested by

no test coverage detected