From: Ian Jackson Subject: [OSSTEST PATCH 05/11] mg-debug-fail: Catch attempts to read from a tty Date: Fri, 4 Dec 2015 19:35:28 +0000 Message-ID: <1449257734-26860-6-git-send-email-ian.jackson@eu.citrix.com> References: <1449257734-26860-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a4w8z-00063T-DP for xen-devel@lists.xenproject.org; Fri, 04 Dec 2015 19:35:49 +0000 In-Reply-To: <1449257734-26860-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org When stdin is a tty, do not try to dump it. Signed-off-by: Ian Jackson --- mg-debug-fail | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mg-debug-fail b/mg-debug-fail index 64fa235..ffe9f50 100755 --- a/mg-debug-fail +++ b/mg-debug-fail @@ -3,10 +3,10 @@ # This script can be provided anywhere an executable or command name is # wanted. It prints its arguments, and its stdin, to its stderr, and # then exits nonzero. -# -# When using this it may be useful to provide /dev/null 2>&1; then + exec &2 -- 1.7.10.4