Signal Handling Internals: The Kernel Stack and Context Switching
When your production service crashes at 3 AM because a signal handler called malloc(), you realize signals aren’t just “software interrupts.” They’re a complex dance between user space, kernel space, and CPU hardware that most engineers never fully understand. Let me show you what actually happens when a signal arrives.

