Removed unnecessary exclusion of Redox in cond-compilation and narrowed what we import from .

This commit is contained in:
Jose Narvaez 2017-10-19 22:41:57 +01:00 committed by David Peter
parent 715b07599b
commit 6dc704a18e

View file

@ -30,7 +30,7 @@ impl<'a> CommandTicket<'a> {
/// Executes the command stored within the ticket, and
/// clearing the command's buffer when finished.'
#[cfg(not(all(unix, not(target_os = "redox"))))]
#[cfg(not(unix))]
pub fn then_execute(self) {
use std::process::Stdio;
use std::io::Write;
@ -63,9 +63,9 @@ impl<'a> CommandTicket<'a> {
self.command.clear();
}
#[cfg(all(unix, not(target_os = "redox")))]
#[cfg(all(unix))]
pub fn then_execute(self) {
use libc::*;
use libc::{close, dup2, pipe, STDERR_FILENO, STDOUT_FILENO};
use std::fs::File;
use std::os::unix::process::CommandExt;
use std::os::unix::io::FromRawFd;