]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: stty-row-col would hang when run in the background
authorJim Meyering <meyering@redhat.com>
Thu, 26 Feb 2009 19:25:42 +0000 (20:25 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 26 Feb 2009 19:25:42 +0000 (20:25 +0100)
* tests/misc/stty-row-col: Don't hang when run in background
at least on Solaris 10 and OpenBSD.

tests/misc/stty-row-col

index 987e0d59731bfb889b59497ebaf74c813a49c6e3..c98ab15e7d06b10a208d3d4437d5328f27b1d6eb 100755 (executable)
@@ -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.