This is admittedly a contrived example and it comes as a result of trying to create a series of bash commands that can be executed in such a way that there is no way to resume control of the system other than rebooting.
Basically, I was wondering if there is any way out of this command state, assuming this is the first thing run after boot. To generalize the question, is there an unblockable way to terminate any running command without physically turning off the device?
while trap '' 2; do read; done;
Edit: Just to clarify, I'm interested if this is possible for the same user who ran the command to do within the same shell / assuming the box is inaccessible through anything other than a physical keyboard and this is the first thing that ran after boot.