Subject: Re: su and /bin/sh
To: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
From: None <sigsegv@rambler.ru>
List: current-users
Date: 03/23/2005 15:43:01
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