Re: What interrupt does Ctrl+Alt+Delete send PID1?

From: Steve Litt <slitt_at_troubleshooters.com>
Date: Thu, 11 Jun 2015 17:34:37 -0400

On Thu, 11 Jun 2015 10:04:13 -0700 (PDT)
"Robert Hencke" <robert.hencke_at_gmail.com> wrote:
> On Thu, Jun 11, 2015 at 12:59 PM, Steve Litt
> <slitt_at_troubleshooters.com> wrote:
>
> > Hi all,
> > What interrupt does Ctrl+Alt+Delete send PID1?
> > Google just tells how to tweak /etc/inittab to react to
> > Ctrl+Alt+Del, but in my case /etc/inittab isn't being used: I need
> > to react to the specific interrupt.
> > Thanks,
> > SteveT
> > Steve Litt
> > June 2015 featured book: The Key to Everyday Excellence
> > http://www.troubleshooters.com/key


> I believe this is SIGINT.
>

Thanks Robert,

I have a feeling that SIGINT isn't getting all the way to PID1. When I
do the following:

kill -s SIGINT 1

It runs rc.shutdown with the argument "reboot" and reboots the system,
just like it's supposed to. But when I press Ctrl+Alt+Del at a virtual
terminal, it doesn't. That makes me suspect that either Ctrl+Alt+Del is
sending a different interrupt to PID 1, or the SIGINT it's sending
isn't getting to PID 1.

I'll try to research if further.

Thanks again,

SteveT

Steve Litt
June 2015 featured book: The Key to Everyday Excellence
http://www.troubleshooters.com/key
Received on Thu Jun 11 2015 - 21:34:37 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC