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"
1515libc = " 0.2.50"
1616
1717[features ]
18- check_pipe = []
18+ do_not_check_pipe = []
1919
2020[dev-dependencies ]
2121futures = " 0.1"
Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl Helper {
379379}
380380
381381fn 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 (
You can’t perform that action at this time.
0 commit comments