-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Should std::os::pipe() be unsafe? #19384
Comments
Seems overly unsafe to me. |
@alexcrichton you apparently wrote the signature of this function, or at least touched it last. Thoughts? |
Questions like this are largely addressed during API stabilization, and we haven't gotten to the |
The documentation only highlight the memory leak, not the other system resource leaks like file descriptor, which could have a more important impact (i.e. data confidentiality and integrity). Possibility of file descriptor leak should be marked as unsafe. Implementing an |
Creating and leaking a file descriptor doesn't qualify as |
In general, |
I'm going to close this for now, in favor of the stabilization process. |
The docs say:
However, resource leaks are explicitly behavior not considered unsafe.
Is this just a strange wording in
pipe
's docs, or is this overly unsafe?The text was updated successfully, but these errors were encountered: