Anyway, here is how to crash it with 100% success on (my) system:
Using the complicated source code from the vanilla "Hello, world!"
program, we demonstrate:
#include <stdio.h>
int main()
{
for (;;)
printf("Hello, world!\n");
}
Compile this, and run it. While it is running, see what happens if you
hold down the return key for a few seconds. On my system, it is a nice
hard lock followed by a cold reboot.
-- +----------------------+----------------------------------------+ | bytor@tucka.nmhu.edu | UNIX _is_ user-friendly. It's just not | | By-Tor@EfNet | ignorant-friendly and idiot-friendly. | +----------------------+----------------------------------------+
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html