From: Andy Wilkinson <drukargin@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Ctrl+C not working over ssh?
Date: Wed, 25 May 2011 18:53:03 -0700 [thread overview]
Message-ID: <4DDDB27F.9010307@gmail.com> (raw)
In-Reply-To: <20110525140807.GZ20163@ns1.bonedaddy.net>
On 05/25/2011 07:08 AM, Todd Goodman wrote:
> * Andy Wilkinson <drukargin@gmail.com> [110524 18:02]:
>> On 05/24/2011 12:38 PM, Todd Goodman wrote:
>>> * Andy Wilkinson<drukargin@gmail.com> [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
>
Well, for no good reason, a reboot once I was back at the machine fixed
the issue. I'm not sure why; I didn't change anything. I hate not
knowing why reboots fix things. :(
-Andy
next prev parent reply other threads:[~2011-05-26 1:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-24 16:49 [gentoo-user] Ctrl+C not working over ssh? Andy Wilkinson
2011-05-24 18:27 ` [gentoo-user] " Hartmut Figge
2011-05-24 19:38 ` [gentoo-user] " Todd Goodman
2011-05-24 22:29 ` Andy Wilkinson
2011-05-24 22:58 ` Paul Hartman
2011-05-25 14:08 ` Todd Goodman
2011-05-26 1:53 ` Andy Wilkinson [this message]
2011-05-26 12:10 ` Todd Goodman
[not found] <gW37B-18c-21@gated-at.bofh.it>
2011-05-24 20:40 ` Indi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DDDB27F.9010307@gmail.com \
--to=drukargin@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox