Subject: Re: su and /bin/sh
To: None <sigsegv@rambler.ru>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 03/23/2005 10:41:51
In message <42418E85.3000100@rambler.ru>, sigsegv@rambler.ru writes:
>Kouichirou Hiratsuka wrote:
>> Hello,
>> 
>> I'm using /bin/sh as root's shell.  With recent -current, if I
>> switch to root with "su -", Ctrl-C does not work properly.  It
>> can't interrupt any programs.
>> 
>>   % su -
>>   Password:
>>   # sleep 10
>>   ^C^C^C^C^C#
>> 
>> I hit Ctrl-C 5 times immediately, but the prompt appeared after
>> 10 seconds...  This does not happen without "-" or with direct
>> login as root.
>> 
>> Anyone else seeing this?
>
>Yeah, I noticed this a week ago I think, on sparc64. I thought it was 
>only affecting sparc64 port as they're changing to wscons or something, 
>but looks like the bug is somewhere else. I see the same behaviour via ssh:
>
>vmstat -c 10 1
>
>before vmstat finished outputting 10 lines, hit CTRL-C and it will not 
>terminate the process
>
I see the same thing.  Running 'trap' does not show any signals as 
being ignored, so it sounds like a tty process group issue.

		--Prof. Steven M. Bellovin, http://www.cs.columbia.edu/~smb