Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
143de623
Commit
143de623
authored
Aug 04, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix markup.
parent
70a6dbd4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
Doc/library/subprocess.rst
Doc/library/subprocess.rst
+12
-15
No files found.
Doc/library/subprocess.rst
View file @
143de623
...
...
@@ -193,9 +193,11 @@ Instances of the :class:`Popen` class have the following methods:
Wait for child process to terminate. Set and return :attr:`returncode`
attribute.
warning:: This will deadlock if the child process generates enough output
to a stdout or stderr pipe causing it to block waiting for the OS's pipe
buffer to accept more data.
.. warning::
This will deadlock if the child process generates enough output to a
stdout or stderr pipe causing it to block waiting for the OS's pipe buffer
to accept more data.
.. method:: Popen.communicate(input=None)
...
...
@@ -249,35 +251,30 @@ Instances of the :class:`Popen` class have the following methods:
The following attributes are also available:
.. warning::
Use :meth:`communicate` rather than ``.stdin.write()``, ``.stdout.read()`` or
``.stderr.read`` to avoid deadlocks due to any of the other pipe buffers
filling up and blocking the child process.
.. attribute:: Popen.stdin
If the *stdin* argument is ``PIPE``, this attribute is a file object that
provides input to the child process. Otherwise, it is ``None``.
warning:: Use :meth:`communicate` rather than .stdin.write() to avoid
deadlocks due to any of the other pipe buffers filling up and blocking the
child process.
.. attribute:: Popen.stdout
If the *stdout* argument is ``PIPE``, this attribute is a file object that
provides output from the child process. Otherwise, it is ``None``.
warning:: Use :meth:`communicate` rather than .stdout.read() to avoid
deadlocks due to any of the other pipe buffers filling up and blocking the
child process.
.. attribute:: Popen.stderr
If the *stderr* argument is ``PIPE``, this attribute is file object that
provides error output from the child process. Otherwise, it is ``None``.
warning:: Use :meth:`communicate` rather than .stderr.read() to avoid
deadlocks due to any of the other pipe buffers filling up and blocking the
child process.
.. attribute:: Popen.pid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment