Mainly directed at folks such as robbat2 and
zaitcev:
What would it take to add the ability into a *nix kernel to kill a process that's in uninterruptible sleep due to, say, a hardware fault? Say I have an external device, and it hangs up, and I can reset the device, but the daemon that was controlling it is still in uninterruptible sleep. I really should be able to tell the kernel, "Look, I don't care that the process isn't responding, I SAID KILL IT, RIGHT NOW", and have the kernel do it. Never mind trying to play nice with the process, just forcibly terminate its execution and free all of its allocated memory, ports, sockets etc. Sort of a kill -9 on steroids. SIG_TERM, SIG_KILL, SIG_EXTREME_PREJUDICE. If the process is non-responsive and in uninterruptible sleep, that's most likely the reason WHY I want it terminated, without having to rely on the target process doing anything in response to a signal. (OK, for that reason it wouldn't really actually be a signal, it'd be more of a kernel-instigated purge-process facility. And per the point raised by ithildae, it should probably require UID0 to call it.)
Would there be any downsides to doing so? Reasons why the capability would be a bad idea?
Being able to do that could save a reboot, or at least let you postpone a reboot until you're done with whatever it was you were working on. It's always seemed odd to me that even a SIGKILL requires at least minimal cooperation on the part of the process being killed.
no subject
If qemu matures to the point it can either fully emulate or has some sort of bridge to the real hardware AND it does it's own hardware handling properly. You can just close the window. ;)
It does work now but the emulated PC is ultra vanilla. I use it just to have a sandbox for windows.
It would be pretty cool to have a rack SMOS cardio-486's, one processor per task with the power, reset, etc controlled by another processor. I'd never heard of but they have some gathering dust at work. Credit card sized 486 w/16 megs, video, serial, and some sort of buss connection. They can boot dos with the right breakout. ;)
Yes I lust for it but there is almost ZERO information online about them and ours were just part of another system we sold which is now obsolete.
http://www.thefreelibrary.com/S-MOS+Systems+announces+'486+credit-card+sized+computer.-a015970434