Skip to content

subprocess_started

faststream.cli.supervisors.utils.subprocess_started #

subprocess_started(*args, t, stdin_fileno)

Start a subprocess.

Source code in faststream/cli/supervisors/utils.py
def subprocess_started(
    *args: Any,
    t: "DecoratedCallableNone",
    stdin_fileno: Optional[int],
) -> None:
    """Start a subprocess."""
    if stdin_fileno is not None:  # pragma: no cover
        sys.stdin = os.fdopen(stdin_fileno)
    t(*args)