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
David Wilson f752653e77 core: IoLogger: don't set O_CLOEXEC on standard handles
nested_test was failing due to the recent change to centralize
O_CLOEXEC, since stdout and stderr were being marked as non-inheritable.
That meant child processes would start with no stdout/stderr, triggering
a race between Waker opening its pipes, and IoLogger dup2'ing its pipes
over the stdio handles.

Since the stdio handles were closed, Waker would receive one of them as
one end of its pipe, and consequently have it overwritten by IoLogger.

When IoLogger dups over the top of fd 2, it becomes possible for
Waker.on_read() to be called due to pipe's other end to be closed,
causing an OSError exception with errno EAGAIN to appear.
8 years ago
ansible_mitogen ansible: use DeduplicatingService for ContextService; closes #162. 8 years ago
docs docs: typo 8 years ago
examples issue #152: reproduction for second problem 8 years ago
mitogen core: IoLogger: don't set O_CLOEXEC on standard handles 8 years ago
tests issue #155: skeletal fork_test. 8 years ago
.gitignore Some gitignore extras 8 years ago
.lgtm.yml compat: ignore LGTM checks on third party 8 years ago
.travis.yml Remove overall build timeout from .travis.yml. 8 years ago
LICENSE Add license text everywhere. 8 years ago
README.md README: move testing bits into tests directory. 8 years ago
dev_requirements.txt Add Google Cloud client to dev requirements 8 years ago
preamble_size.py docs: fix preamble_size.py after whitelist changes 8 years ago
setup.cfg Initial flake8 configuration. 8 years ago
setup.py setup: Scan project dir to find packages 8 years ago
test.sh issue #155: skeletal fork_test. 8 years ago
tox.ini tests: Add Tox config for Python 2.6 and 2.7 8 years ago

README.md