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

prevent accidental shutdown->close pattern on exit #12180

Merged
merged 3 commits into from
Jul 20, 2015

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jul 16, 2015

since julia finalizers were now calling uv_shutdown on all streams (including stdio), and the code to check the julia isopen status got deleted, this code now needs to ensure that the jl_close_uv function is a no-op for streams in shutdown. this was previously observed in gdb to result in a call to uv_close on all streams in the jl_atexit_hook libuv-walk.

i think this should help fix #11017

@tkelman
Copy link
Contributor

tkelman commented Jul 17, 2015

Apparently not. Also fully closing #11017 would require deleting the corresponding @unix_only in test/misc.jl

@vtjnash vtjnash force-pushed the jn/stop_double_close_stream branch from 81be7fc to 72973d8 Compare July 18, 2015 03:48
vtjnash added 2 commits July 18, 2015 02:41
since julia finalizers were now calling uv_shutdown on all streams (including stdio), and the code to check the julia isopen status got deleted, this code now needs to ensure that the jl_close_uv function is a no-op for streams in shutdown. this was previously observed in gdb to result in a call to uv_close on all streams in the jl_atexit_hook libuv-walk.
@vtjnash vtjnash force-pushed the jn/stop_double_close_stream branch from 72973d8 to 951c4d3 Compare July 18, 2015 06:47
also call the julia close cleanup handler on the file pseudo-objects
vtjnash added a commit that referenced this pull request Jul 20, 2015
prevent accidental shutdown->close pattern on exit
@vtjnash vtjnash merged commit 131c4d9 into master Jul 20, 2015
@vtjnash vtjnash deleted the jn/stop_double_close_stream branch July 20, 2015 21:55
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.

Not reading complete output from child process on windows.
2 participants