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

From: Robert Hencke <robert.hencke_at_gmail.com>
Date: Thu, 11 Jun 2015 15:56:01 -0700 (PDT)

The only thing I can think of that can affect this is if you are running in a PID namespace (container) - if you are, you may receive SIGHUP instead.  This may have some helpful info on your quest - it talks about what signals are sent under what conditions, and what can affect them: http://man7.org/linux/man-pages/man2/reboot.2.html


Hope something here helps!







On Thursday, Jun 11, 2015 at 5:34 PM, Steve Litt <slitt_at_troubleshooters.com>, wrote:
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 - 22:56:01 UTC

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