class asyncio.BaseSubprocessTransport
-
get_pid() -
Return the subprocess process id as an integer.
-
get_pipe_transport(fd) -
Return the transport for the communication pipe corresponding to the integer file descriptor fd:
-
0: readable streaming transport of the standard input (stdin), orNoneif the subprocess was not created withstdin=PIPE -
1: writable streaming transport of the standard output (stdout), orNoneif the subprocess was not created withstdout=PIPE -
2: writable streaming transport of the standard error (stderr), orNoneif the subprocess was not created withstderr=PIPE - other fd:
None
-
-
get_returncode() -
Return the subprocess returncode as an integer or
Noneif it hasn’t returned, similarly to thesubprocess.Popen.returncodeattribute.
-
kill(self) -
Kill the subprocess, as in
subprocess.Popen.kill().On POSIX systems, the function sends SIGKILL to the subprocess. On Windows, this method is an alias for
terminate().
-
send_signal(signal) -
Send the signal number to the subprocess, as in
subprocess.Popen.send_signal().
-
terminate() -
Ask the subprocess to stop, as in
subprocess.Popen.terminate(). This method is an alias for theclose()method.On POSIX systems, this method sends SIGTERM to the subprocess. On Windows, the Windows API function TerminateProcess() is called to stop the subprocess.
-
close() -
Ask the subprocess to stop by calling the
terminate()method if the subprocess hasn’t returned yet, and close transports of all pipes (stdin, stdout and stderr).
Please login to continue.