syscall_intercept
syscall_intercept copied to clipboard
intercept: Abort via the equivalent of raise(SIGABRT)
If we're crashing, raise(SIGABRT) is more debugging-friendly than _exit(1) - that way we'll leave a core dump behind.
Hmm, this makes the tests fail, because some of the tests expect it to be possible to fail to patch a function. Sorry, I'm not sure I understand how those tests ever passed - wouldn't they kill the host process with exit_group()?