We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d30b99f commit 541503aCopy full SHA for 541503a
src/libstd/sys/unix/stdio.rs
@@ -12,7 +12,7 @@ impl Stdin {
12
pub fn read(&self, data: &mut [u8]) -> io::Result<usize> {
13
let fd = FileDesc::new(libc::STDIN_FILENO);
14
let ret = fd.read(data);
15
- fd.into_raw();
+ fd.into_raw(); // do not close this FD
16
ret
17
}
18
@@ -23,7 +23,7 @@ impl Stdout {
23
pub fn write(&self, data: &[u8]) -> io::Result<usize> {
24
let fd = FileDesc::new(libc::STDOUT_FILENO);
25
let ret = fd.write(data);
26
27
28
29
@@ -38,7 +38,7 @@ impl Stderr {
38
39
let fd = FileDesc::new(libc::STDERR_FILENO);
40
41
42
43
44
0 commit comments