File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ edition = "2018"
15
15
libc = " 0.2.50"
16
16
17
17
[features ]
18
- check_pipe = []
18
+ do_not_check_pipe = []
19
19
20
20
[dev-dependencies ]
21
21
futures = " 0.1"
Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl Helper {
379
379
}
380
380
381
381
fn check_fd ( fd : c_int ) -> io:: Result < ( ) > {
382
- #[ cfg( feature = "check_pipe" ) ]
382
+ #[ cfg( not ( feature = "do_not_check_pipe" ) ) ]
383
383
unsafe {
384
384
let mut stat = mem:: zeroed ( ) ;
385
385
if libc:: fstat ( fd, & mut stat) == -1 {
@@ -397,7 +397,7 @@ fn check_fd(fd: c_int) -> io::Result<()> {
397
397
Err ( io:: Error :: last_os_error ( ) ) //
398
398
}
399
399
}
400
- #[ cfg( not ( feature = "check_pipe" ) ) ]
400
+ #[ cfg( feature = "do_not_check_pipe" ) ]
401
401
unsafe {
402
402
match libc:: fcntl ( fd, libc:: F_GETFD ) {
403
403
r if r == -1 => Err ( io:: Error :: new (
You can’t perform that action at this time.
0 commit comments