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
THREAD_SUBPROCS=None for xonshrc files #3705
Conversation
@xonsh/xore - this is ready for review! |
I confirm this PR works for me on Ubuntu 20.04 (I am using it only to run |
Pinging this again @xonsh/xore |
@scopatz, I hear you. To be completely honest, I don't agree with the change, because it breaks the expected behavior on POSIX. On the other hand it enables job control and removes a lot of confusion about threaded/unthreaded behavior. I would very much like to see a follow-up commit with a documentation change describing thoroughly the effects of the |
Yeah, to be clear I totally agree about wanting to make the sub-processes reliably threadable. Also this doesn't change the default behavior in any way once xonsh is loaded. (ie THREAD_SUBPROCS=True still) This only turns of threadable supbrocs temporarily while xonsh is loading so that you can reliably start xonsh from Bash. Do you still think this needs more docs than I added here? |
Also, thanks for the merge! |
Thanks for the PR!
Yes, I do. We need to point out, that the RC scripts may behave differently from the regular code and why. |
Ahh Ok I will put it in |
done in #3708 |
This is related to the issue at regro/rever#217. I independently verified that even xonsh itself was having trouble starting up if any threaded subproc was used in rc files. Super weird and hard to diagnose. The issue seems to have first arrived in the environment refactor (a8d4a57), but seems to be a side effect of that commit rather than directly caused by it.