Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize sys_path_lock after the double fork() #16

Conversation

goneri
Copy link
Member

@goneri goneri commented Oct 19, 2020

This change address a problem on MacOS.

If we create the asyncio lock before we do the double forks, it
actually initialize the asyncio context in the father process. And later
we get an "Bad file descriptor" when we try to start the asyncio endless
loop in the child process.

See: https://python-tornado.narkive.com/a9lCRPxp/errno-9-bad-file-descriptor#post2

Closes: #13

This change address a problem on MacOS.

If we create the asyncio lock before we do the double forks, it
actually initialize the asyncio context in the father process. And later
we get an "Bad file descriptor" when we try to start the asyncio endless
loop in the child process.

See: https://python-tornado.narkive.com/a9lCRPxp/errno-9-bad-file-descriptor#post2

Closes: ansible-collections#13
@goneri goneri force-pushed the Create-the-sys_path_lock-lock-after-the-double-forks_31991 branch from 66d0a1b to 10bcecc Compare October 19, 2020 19:01
@goneri goneri added the bug Something isn't working label Oct 19, 2020
@goneri goneri changed the title Create the sys_path_lock lock after the double forks Initialize sys_path_lock after the double fork Oct 19, 2020
@goneri goneri changed the title Initialize sys_path_lock after the double fork Initialize sys_path_lock after the double fork() Oct 19, 2020
@goneri goneri added the gate label Oct 19, 2020
@ansible-zuul ansible-zuul bot merged commit 51ca7b1 into ansible-collections:main Oct 19, 2020
goneri added a commit to goneri/cloud.common that referenced this pull request Oct 20, 2020
ansible-zuul bot pushed a commit that referenced this pull request Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

turbo_demo module doesn't seem to work with connection=local
1 participant