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

Clean up redirect_* APIs after Pipe -> PipeEndpoint rename #18253

Closed
wants to merge 1 commit into from

Conversation

Keno
Copy link
Member

@Keno Keno commented Aug 26, 2016

These probably should have been cleaned up along side that in #12739.
Certainly the documentation was out of date, since it referred to Pipe,
but meant what is now called PipeEndpoint. Clean all of this up, by
allowing an unitinalized Pipe to be passed to these functions, and
also by replacing the tuple of PipeEndpoints, by Pipe, since the
purpose of Pipe is precisely to hold two endpoints.

These probably should have been cleaned up along side that in #12739.
Certainly the documentation was out of date, since it referred to `Pipe`,
but meant what is now called `PipeEndpoint`. Clean all of this up, by
allowing an unitinalized `Pipe` to be passed to these functions, and
also by replacing the tuple of `PipeEndpoint`s, by `Pipe`, since the
purpose of `Pipe` is precisely to hold two endpoints.
@tkelman
Copy link
Contributor

tkelman commented Aug 26, 2016

run make docs and commit the rst versions too

@kshyatt kshyatt added the io Involving the I/O subsystem: libuv, read, write, etc. label Aug 30, 2016
@vtjnash
Copy link
Member

vtjnash commented Sep 9, 2016

I suspect this'll need a deprecation (defining iteration over Pipe to return (in, out), with a depwarn), but otherwise seems good to me.

@@ -946,11 +946,13 @@ for (x, writable, unix_fd, c_symbol) in
handle.handle)
handle
end
function ($f)(handle::Pipe)
link_pipe(handle, julia_only_read = $(writable), julia_only_write = $(!writable))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably needs to check whether the Pipe is already open, following logic from

julia/base/process.jl

Lines 410 to 412 in f06840e

if stdio.in.status == StatusUninit && stdio.out.status == StatusUninit
link_pipe(stdio)
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the $f function on line 944 is also missing an isopen test

@vtjnash
Copy link
Member

vtjnash commented Aug 31, 2023

Replaced by #39132

@vtjnash vtjnash closed this Aug 31, 2023
@vtjnash vtjnash deleted the kf/piperedirect branch August 31, 2023 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io Involving the I/O subsystem: libuv, read, write, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants