Subject: Re: Can't Ctlr-C on console anymore...
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 04/17/2006 16:30:50
In article <1145284933l.559l.0l@origin.amelgem.be>,
dieter roelants <dieter.NetBSD@pandora.be> wrote:
>On 04/17/06 09:16:00, Jukka Salmi wrote:
>
>> When using /bin/sh this problem doesn't exist. However, using an old
>> (2004-01-01) ksh didn't fix the problem...
>>
>> Is anybody else seeing this?
>
>Yes. I also think I know what changed that causes this. Since
>http://cvsweb.be.netbsd.org/cgi-bin/cvsweb.cgi/src/usr.bin/login/login_pam.c.diff?r2=1.16&r1=1.15&f=H
>
>pam_login restores SIGINT to its previous value. However, the previous
>value as saved on line 534 is SIG_IGN, because it was set so already on
>line 157. My guess is /bin/sh explicitly sets SIGINT to the default.
>
>(As a workaround you can put 'trap - 2' in your .profile )
>
>Kind regards
>dieter
Yup, this was a mess. I think I fixed it now.
christos