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

Make main thread detection a bit less fragile #83

Merged

Conversation

bpicolo
Copy link
Contributor

@bpicolo bpicolo commented Apr 13, 2015

I think this should make the main thread detection a bit less fragile? Seems to work fine uwsgi worker processes, whereas the other version didn't =|

https://hg.python.org/cpython/file/2.7/Lib/threading.py#l1085 special class in thread lib just for the main thread

Edit: Heh, #81 is not entirely unlike my issue probably. Might want some combination of both of those pulls

Aha. Fixes #78 for uWsgi. :D I see now others had the same issue

@itamarst
Copy link
Owner

Ooh, I never knew that existed. Yeah, seems like good thing to combine with #81. I'll tackle reviewing #81 first but will definitely get to this.

@bpicolo
Copy link
Contributor Author

bpicolo commented Apr 28, 2015

@itamarst Any chance we could take this as a quick fix for the issue soon?

@itamarst
Copy link
Owner

I was hoping to get #81 in soon; if that doesn't happen by this weekend I'll merge this and do another release and do #81 in the release after that. Sound good?

Meanwhile, could you merge forward and:

  1. Make this pass on Python 3.
  2. Add a news entry crediting yourself.

Then I can just merge easily.

Thanks!

@bpicolo
Copy link
Contributor Author

bpicolo commented Apr 28, 2015

@itamarst ahh, didn't notice 3.3 under all the pypys, yeah I can take care of that.

@bpicolo bpicolo force-pushed the less_fragile_main_thread_detection branch from 3b4744a to 0ea6fd8 Compare April 28, 2015 20:41
itamarst added a commit that referenced this pull request May 2, 2015
Make main thread detection a bit less fragile.
@itamarst itamarst merged commit c391cd1 into itamarst:master May 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crochet doesn’t work with uWSGI
2 participants