Skip to content

Commit

Permalink
Implement IoSafe for the child process stdio types
Browse files Browse the repository at this point in the history
I forgot to implement IoSafe on these during the initial switch to polling v3.0.0

Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Oct 19, 2023
1 parent 7e89eec commit 62bf341
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,9 @@ unsafe impl IoSafe for std::io::StderrLock<'_> {}
unsafe impl IoSafe for std::io::StdinLock<'_> {}
unsafe impl IoSafe for std::io::StdoutLock<'_> {}
unsafe impl IoSafe for std::net::TcpStream {}
unsafe impl IoSafe for std::process::ChildStdin {}
unsafe impl IoSafe for std::process::ChildStdout {}
unsafe impl IoSafe for std::process::ChildStderr {}

#[cfg(unix)]
unsafe impl IoSafe for std::os::unix::net::UnixStream {}
Expand Down

0 comments on commit 62bf341

Please sign in to comment.