You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the ImplStdio trait assumes that it can take ownership of the underlying file descriptor. The Stdin/Stdout/Stderr types only implement AsRawFd, and not IntoRawFd, because taking ownership of those fd's would be a terrible idea. We might want to switch to an implementation that always dups the underlying fd, and takes an AsRawFd bound, to work better with these new methods.
ebkalderon
added a commit
to ebkalderon/bastille
that referenced
this issue
Nov 25, 2019
This is for the same reason as the author of the `os_pipe` crate stated
in oconnor663/os_pipe.rs#11, that it is generally a bad idea to take
full ownership of the pipes' file descriptors and usually isn't what you
want to do when you call the method.
This will land in 1.21. We might want to incorporate it: rust-lang/rust#43459
The text was updated successfully, but these errors were encountered: