Mirror of mitogen
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Alex Willmer 6cec613daa mitogen: Only close stdio file descriptors that were open at process startup
File descriptors 0, 1, and 2 are usually stdin, stdout, stderr; but not
always. If a process is started without one of these then the first descriptor
allocated by the process opening a file or socket will be allocated an fd <=
STDERR_FILENO. This isn't common, but it does occur, e.g. Windows GUI apps
started without being connected to a console, controller side plugins run
under Ansible 12 (ansible-core 2.19).

In such cases the corresponding sys attribute (e.g. sys.stderr) will be None.

refs #1258

See also
- https://docs.python.org/3/library/sys.html#sys.__stdin__
- https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_12.html#porting-guide-for-v12-0-0a1
- https://github.com/ansible/ansible/pull/82770
- https://github.com/python/typeshed/issues/11778
- https://gist.github.com/moreati/034fef45f73d809d9411a8a63eca34d6
6 months ago
.ci CI: Upgrade Github jobs from Ubuntu 20.04 to 22.04 & 24.04 7 months ago
.github CI: Fix indentation 6 months ago
ansible_mitogen mitogen: Use pty.STD*_FILENO constants 6 months ago
docs mitogen: Only close stdio file descriptors that were open at process startup 6 months ago
examples Remove get_password_hash, unused 1 year ago
mitogen mitogen: Only close stdio file descriptors that were open at process startup 6 months ago
scripts add Python3 compatibility 2 years ago
tests CI: Fix cosmetic typos in get_with_context() regression test 6 months ago
.gitignore Ignore Ansible retry files 2 years ago
.lgtm.yml Whoops, merge together lgtm.yml and .lgtm.yml 6 years ago
LICENSE Bump copyright year and use generic author name (testing Travis) 5 years ago
MANIFEST.in setup.py: include LICENSE; closes #538. 7 years ago
README.md docs: shields.io badges for PyPI version & supported Python versions 1 year ago
dev_requirements.txt Split dev_requirements.txt up according to test mode. 7 years ago
netlify.toml docs: Attempt to configure Netlify build of mitogen.networkgenomics.com 11 months ago
preamble_size.py mitogen.parent: Remove tabs from minimized first stage 4 years ago
run_tests tests: Remove unittest2, use stdlib unittest 4 years ago
setup.cfg Declare universal wheel support 5 years ago
setup.py packaging: Fix InvalidVersion in release versions 7 months ago
tox.ini ci: Configure package managers using a role 9 months ago

README.md