From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QPFFP-0003kL-I3 for garchives@archives.gentoo.org; Wed, 25 May 2011 14:39:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 110691C1CE; Wed, 25 May 2011 14:38:17 +0000 (UTC) Received: from ns1.bonedaddy.net (ns1.bonedaddy.net [70.91.141.202]) by pigeon.gentoo.org (Postfix) with ESMTP id C95C61C1CE for ; Wed, 25 May 2011 14:38:17 +0000 (UTC) Received: from ns1.bonedaddy.net (localhost [127.0.0.1]) by ns1.bonedaddy.net (8.14.5/8.14.4) with ESMTP id p4PE88u6010249 for ; Wed, 25 May 2011 10:08:08 -0400 Received: (from tgoodman@localhost) by ns1.bonedaddy.net (8.14.5/8.14.5/Submit) id p4PE88S6010247 for gentoo-user@lists.gentoo.org; Wed, 25 May 2011 10:08:08 -0400 X-Authentication-Warning: ns1.bonedaddy.net: tgoodman set sender to tsg@bonedaddy.net using -f Date: Wed, 25 May 2011 10:08:08 -0400 From: Todd Goodman To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Ctrl+C not working over ssh? Message-ID: <20110525140807.GZ20163@ns1.bonedaddy.net> References: <4DDBE1A5.6000104@gmail.com> <20110524193800.GU20163@ns1.bonedaddy.net> <4DDC3130.5020209@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DDC3130.5020209@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 874e42c32708f6f7fc411ce02fd6c7a0 * Andy Wilkinson [110524 18:02]: > On 05/24/2011 12:38 PM, Todd Goodman wrote: > > * Andy Wilkinson [110524 12:24]: > >> I can't say for sure when this started, as I have gone a while without > >> accessing my computer remotely much, but perhaps since my last upgrade > >> (which may have included openrc), ctrl-c doesn't work over ssh. I have > >> tested this from multiple workstations and even my droid, using > >> different terminal emulators, and have got consistent results. > >> > >> I'm not even sure where to start looking. Googling didn't find me much > >> (at least, not much that's current at all; 5 year-old ubuntu bugs aren't > >> very useful), and I'm not sure at all what might be causing this. Could > >> anyone here point me to something that might be causing this? > >> > >> Thanks, > >> > >> -Andy > > I don't have any problems. What does 'stty -a' show for the intr= bit? > > > > Todd > > > $ stty -a > speed 38400 baud; rows 23; columns 80; line = 0; > intr = ^C; ... > > Which looks right, but when I try to use Ctrl-C, this happens: > > $ ping localhost > PING localhost (127.0.0.1) 56(84) bytes of data. > 64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.037 ms > ^C64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.032 ms > ^C^C^C64 bytes from localhost (127.0.0.1): icmp_req=3 ttl=64 time=0.032 ms > ^C^C^C^C^C^C64 bytes from localhost (127.0.0.1): icmp_req=4 ttl=64 > time=0.034 ms > ^C^C^C^C^C^C64 bytes from localhost (127.0.0.1): icmp_req=5 ttl=64 > time=0.032 ms > ^Z > > This does NOT happen locally: from a console or terminal at the machine, > I can interrupt just fine. Ctrl-Z does//work over ssh. > > Thanks, > > -Andy Very strange (as someone else said.) Only thing I can think of is that something in your startup scripts (.profile, .bashrc, etc.) are doing something different between the two logins. I've seen that most often when they do things based on TERM and it's different between a local login and remote. Maybe make sure your startup scripts run with a 'set -x' at the beginning and compare the output? Good luck, Todd