LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] CTRL-ALT-DELETE

[ILUG] CTRL-ALT-DELETE

Paolo Marchiori paolo at marchiori.net
Fri Aug 26 06:14:05 IST 2005


On Fri, Aug 26, 2005 at 10:48:53AM +0100, Andres Jimenez wrote:
=> What about a small script with a menu and different options? 

Bear in mind that the keyboard handler under X11 traps keypresses. As a
matter of fact, the magic c-a-d isn't magic at all - the console keymap
just maps it to "Boot", which means "send SIGINT to PID 1", which (as
stated in inittab(5) ) calls the ctrlaltdel line if defined.

One could map "Boot" to another key or keysequence (go figure mapping it
to the "Enter" key...) or have the ctrlaltdel instance being called with

# kill -INT 1

(provided of course PID 1 is goold old sysv-init)

Anyway, as I was reminded on one of my first posts to this list, back in
late 2002, "little hacky shell scripts tend to introduce in the system more
evilness (eg: race conditions) than they solve".

p.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell