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.
ansible/test/units/executor
Sam Doran a259d79ad6
[stable-2.9] Fix filedescriptor out of range in select() when running commands (#65058) (#69517)
* Fix filedescriptor out of range in select() when running commands

* Simplify the run_command() code

Now that we're using selectors in run_command(), we can simplify some of
the code.

* Use fileobj.read() instead of os.read()
* No longer use get_buffer_size() as we can just slurp all of the data
  instead.

Also use a simpler conditional check of whether the selector map is
empty

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>.
(cherry picked from commit f200487414)

Co-authored-by: Bob Weinand <bobwei9@hotmail.com>

Co-authored-by: Bob Weinand <bobwei9@hotmail.com>
5 years ago
..
module_common [stable-2.9] Fix filedescriptor out of range in select() when running commands (#65058) (#69517) 5 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_interpreter_discovery.py Use unicode string for auto interpreter warnings (#53671) 6 years ago
test_play_iterator.py unit tests: remove unused imports (#59636) 5 years ago
test_playbook_executor.py Move the arguments module into cli/ and context_objects into utils 6 years ago
test_task_executor.py Fix network action plugin load in collection (#65849) 5 years ago
test_task_queue_manager_callbacks.py unit tests: remove unused imports (#59636) 5 years ago
test_task_result.py Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago