-
Notifications
You must be signed in to change notification settings - Fork 13k
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
std::io::pipe needs to be useful #13538
Labels
P-low
Low priority
Comments
I think |
Marking P-low, not 1.0 issue. |
alexcrichton
added a commit
that referenced
this issue
Jun 16, 2014
* os::pipe() now returns IoResult<os::Pipe> * os::pipe() is now unsafe because it does not arrange for deallocation of file descriptors * os::Pipe fields are renamed from input to reader and out to write. * PipeStream::pair() has been added. This is a safe method to get a pair of pipes. * Dealing with pipes in native process bindings have been improved to be more robust in the face of failure and intermittent errors. This converts a few fail!() situations to Err situations. Closes #9458 cc #13538 Closes #14724 [breaking-change]
bors
added a commit
that referenced
this issue
Jun 16, 2014
* os::pipe() now returns `IoResult<os::Pipe>` * os::pipe() is now unsafe because it does not arrange for deallocation of file descriptors * PipeStream::pair() has been added. This is a safe method to get a pair of pipes. * Dealing with pipes in native process bindings have been improved to be more robust in the face of failure and intermittent errors. This converts a few fail!() situations to Err situations. cc #13538 Closes #14724 [breaking-change]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently this module supports consuming a file descriptor to make an I/O object, but it provides no method of creating the file descriptor itself. The current usage of the module is essentially tailored for whatever
std::io::process
needed to get implemented. Some things I believe need to improve:PipeStream
the right name?PipeStream
should be constructable with a function that takes no argumentsI'm nominating this, but I don't view this as a super-critical piece of infrastructure. My current feeling is that it's "good as is" except for the name
PipeStream
which I can learn to live with. The other extra methods can be added later. That being said, this module needs a close look to ensure there's nothing backwards incompatible we'll want to live with.The text was updated successfully, but these errors were encountered: