oconnor663 / os_pipe.rs

a cross-platform library for opening OS pipes in Rust
MIT License
100 stars 16 forks source link

non-inheritability #2

Closed oconnor663 closed 8 years ago

oconnor663 commented 8 years ago

We are currently making file descriptors inheritable when we dup them. That's no good. We'll probably want to copy the entire fs.rs file from the standard library to deal with this properly.

When this is working right, we should document it and figure out how to test it.

oconnor663 commented 8 years ago

As part of this, make dup_* return just Stdio objects, rather than Files.

oconnor663 commented 8 years ago

The easy way to do this was to just use File::try_clone.