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), orNone
if the subprocess was not created withstdin=PIPE
-
1
: writable streaming transport of the standard output (stdout), orNone
if the subprocess was not created withstdout=PIPE
-
2
: writable streaming transport of the standard error (stderr), orNone
if the subprocess was not created withstderr=PIPE
- other fd:
None
-
-
get_returncode()
-
Return the subprocess returncode as an integer or
None
if it hasn’t returned, similarly to thesubprocess.Popen.returncode
attribute.
-
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.