Skip to content

Commit 62bf341

Browse files
committed
Implement IoSafe for the child process stdio types
I forgot to implement IoSafe on these during the initial switch to polling v3.0.0 Signed-off-by: John Nunley <[email protected]>
1 parent 7e89eec commit 62bf341

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,9 @@ unsafe impl IoSafe for std::io::StderrLock<'_> {}
12441244
unsafe impl IoSafe for std::io::StdinLock<'_> {}
12451245
unsafe impl IoSafe for std::io::StdoutLock<'_> {}
12461246
unsafe impl IoSafe for std::net::TcpStream {}
1247+
unsafe impl IoSafe for std::process::ChildStdin {}
1248+
unsafe impl IoSafe for std::process::ChildStdout {}
1249+
unsafe impl IoSafe for std::process::ChildStderr {}
12471250

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

0 commit comments

Comments
 (0)