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 78ec634dab issue #481: core: preserve stderr TTY FD if one is present.
Since 802de6a8d5, sudo on CentOS 5 had
begun failing due to a TTY FD leak in the parent process being fixed.

The old versions of sudo doesn't hang around after starting a child --
they exec the privilege-escalated child process on top of themselves,
meaning no spare copy of the TTY FD is kept alive by sudo.

When the child starts up, it replaces stdio with IoLoggers, including
the inherited stderr FD connected to DiagLogStream/the slave PTY. When
the last process closes a slave PTY, the kernel sends SIGHUP to any
processes still having it as the controlling TTY.

Therefore we must either ignore SIGHUP until the first stage has been
waited on (since the first stage also preserve the FD), or dup the
inherited TTY FD and keep it around forever.

Wasting one FD seems less annoying than modifying process signals for
all potential library users, so that is the approach taken here.
6 years ago
.ci .ci: add verbiage for run_batches() too. 6 years ago
.github github: tweak issue template. 6 years ago
ansible_mitogen ansible: stash PID files in CWD if requested for debugging. 6 years ago
docs docs: update thanks 6 years ago
examples core: many docstring updates and an example substitute for Channel 6 years ago
mitogen issue #481: core: preserve stderr TTY FD if one is present. 6 years ago
scripts misc: rename to scripts. tab completion!! 6 years ago
tests issue #481: avoid crash if disconnect occurs during forward_modules() 6 years ago
.gitignore Add venvs/ to gitignore 6 years ago
.lgtm.yml compat: ignore LGTM checks on third party 7 years ago
.travis.yml issue #477: travis.yml typo. 6 years ago
LICENSE Add license text everywhere. 7 years ago
README.md Motivational shame badges back in README 6 years ago
dev_requirements.txt Split dev_requirements.txt up according to test mode. 6 years ago
preamble_size.py Add a few more important modules to preamble_size.py. 6 years ago
run_tests Allow independant control of coverage erase and reporting 6 years ago
setup.cfg Ignore another annoying flake8 message. 7 years ago
setup.py Drop 'alpha' trove classifier 6 years ago
tox.ini Aggregate code coverage data across tox all runs 6 years ago

README.md