When a page fault occurs in a Linux system, the interrupt-handler has to figure out the reason why the page fault happened. But how ?
The program ed
, a minimal text editor, cannot be exited by sending it an interrupt through using Ctrl–C, instead printing the error message “?” to the console. Why doesn’t ed
just exit when it receives the interrupt? Surely there’s no reason why a cryptic error message is more useful here than just exiting. This behavior leads many new users into the following sort of interaction: