Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!netnews3.nwnet.net!netnews.nwnet.net!news.u.washington.edu!uw-beaver!uhog.mit.edu!bloom-beacon.mit.edu!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: pcvt, XFree, and <Ctrl><Alt><Del> Date: 7 Aug 1996 22:15:27 GMT Organization: Private BSD site, Dresden Lines: 27 Message-ID: <4ub4hv$dev@uriah.heep.sax.de> References: <3207493e.0@usenet.cise.ufl.edu> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E jfh@cise.ufl.edu (James F. Hranicky) wrote: > Is there any way to enable (<Ctrl><Alt><Del> => reboot) using pcvt? > XFree? This worked for syscons, but not for pcvt. It also has never > seemed to work with XFree. pcvt has some rudimentary code that could cause a system reset when hitting ctrl-alt-del. It is disabled by default. Should you wish to enable it, replace the call to cpu_reset() by a call to shutdown_nice() -- this will probably make you more happy. ;) The X server catches all keyboard events, and doesn't interact in any way with the kernel when seeing ctrl-alt-del. If you've got the Xserver sources, you should be able to hook a kill(1, SIGINT); when it detects this key sequence. Maybe you can also make your window manager catching this and execute /sbin/shutdown (which is executable by all members of group operator). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)