bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: stty-row-col would hang when run in the background


From: Jim Meyering
Subject: [PATCH] tests: stty-row-col would hang when run in the background
Date: Thu, 26 Feb 2009 20:27:47 +0100

This makes the final stty test also ignore SIGTTOU.

>From 3a914fa76dab3a4ee3dd2683866eeb664f505a00 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 26 Feb 2009 20:25:42 +0100
Subject: [PATCH] tests: stty-row-col would hang when run in the background

* tests/misc/stty-row-col: Don't hang when run in background
at least on Solaris 10 and OpenBSD.
---
 tests/misc/stty-row-col |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/misc/stty-row-col b/tests/misc/stty-row-col
index 987e0d5..c98ab15 100755
--- a/tests/misc/stty-row-col
+++ b/tests/misc/stty-row-col
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Test "stty" with rows and columns.

-# Copyright (C) 1998-2001, 2003-2008 Free Software Foundation, Inc.
+# Copyright (C) 1998-2001, 2003-2009 Free Software Foundation, Inc.

 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -38,6 +38,7 @@ export LC_ALL

 . $srcdir/test-lib.sh
 require_controlling_input_terminal_
+trap '' TTOU # Ignore SIGTTOU

 # Versions of GNU stty from shellutils-1.9.2c and earlier failed
 # tests #2 and #4 when run on SunOS 4.1.3.
--
1.6.2.rc1.285.gc5f54




reply via email to

[Prev in Thread] Current Thread [Next in Thread]