s/init/pid 1/ ?
Wrong - if pid 1 exits for any reason whatsoever:
1. Take a kernel. Any 2.2, 2.3 or 2.4 kernel will do.
2. boot it with init=/bin/sh
3. Leave to simmer lightly for a while
4. Exit the shell
5. Experiance great joy as the kernel enters an infinite loop
in kernel/exit.c:exit_notify() with local cpu interrupts
disabled and the task list write-locked.
6. Hit the reset button to recover.
Ok, this is user-produced, and I think we've covered all possible
instances of the "real" init being killed.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
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.tux.org/lkml/