From 6dc704a18e6d3a474f17fd6e71d758ab43c0cbfd Mon Sep 17 00:00:00 2001 From: Jose Narvaez Date: Thu, 19 Oct 2017 22:41:57 +0100 Subject: [PATCH] Removed unnecessary exclusion of Redox in cond-compilation and narrowed what we import from . --- src/exec/ticket.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exec/ticket.rs b/src/exec/ticket.rs index 3b552ee..6cd3518 100644 --- a/src/exec/ticket.rs +++ b/src/exec/ticket.rs @@ -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;