Skip to content

Commit 85fc976

Browse files
committed
[temp] switch default to check_pipe
1 parent 39b2790 commit 85fc976

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ edition = "2018"
1515
libc = "0.2.50"
1616

1717
[features]
18-
check_pipe = []
18+
do_not_check_pipe = []
1919

2020
[dev-dependencies]
2121
futures = "0.1"

src/unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ impl Helper {
379379
}
380380

381381
fn check_fd(fd: c_int) -> io::Result<()> {
382-
#[cfg(feature = "check_pipe")]
382+
#[cfg(not(feature = "do_not_check_pipe"))]
383383
unsafe {
384384
let mut stat = mem::zeroed();
385385
if libc::fstat(fd, &mut stat) == -1 {
@@ -397,7 +397,7 @@ fn check_fd(fd: c_int) -> io::Result<()> {
397397
Err(io::Error::last_os_error()) //
398398
}
399399
}
400-
#[cfg(not(feature = "check_pipe"))]
400+
#[cfg(feature = "do_not_check_pipe")]
401401
unsafe {
402402
match libc::fcntl(fd, libc::F_GETFD) {
403403
r if r == -1 => Err(io::Error::new(

0 commit comments

Comments
 (0)