I want to install a signal handler in my application so that the kernel sends a signal whenever it handles the page failure trap. Of course, I can use a signal handler SIGSEGV, but I'm really interested in catching page errors that occur when copying to write. For example, after a fork (and not after exec), the original process will receive a page error if it tries to write to a page. I want to be notified of such page errors. How can I achieve this?
source
share