On Thu, 7 Oct 1999, Michael Gersten wrote:
> > If a process dies, all file handles are automatically close()ed by
> > the kernel, and when it closes /dev/gfx or whatever then the any
> > associated locks should also be released.
>
> Ever see a process that survives kill -9?
The init-process survives it always.
>
> Ever see a process that hangs and needs to be killed?
Yep. A broken and crashed X-program.
>
> How can you kill a process if it hangs and takes the console with it?
If you have a kernel >=2.2.0, you just type:
Alt-SysRq-k
--------------------------------------------------------------------
...
* How do I use the magic SysRQ key
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On x86 - You press the key combo 'ALT-SysRQ-<command key>'. Note - Some
(older?) may not have a key labeled 'SysRQ'. The 'SysRQ' key is
also known as the 'Print Screen' key.
On SPARC - You press 'ALT-STOP-<command key>', I believe.
On PowerPC - You press 'ALT-Print Screen-<command key>'.
...
* What are the 'command' keys?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'r' - Turns off keyboard raw mode and sets it to XLATE.
'k' - Kills all programs on the current virtual console.
...
----------------------------------------------------------------------
For further information have a look at
/usr/src/linux/Documentation/sysrq.txt
Cheers,
Christoph Egger
E-Mail: [EMAIL PROTECTED]