Every program wants to live forever. What happens when a program is forced to exit before it’s done running, and why would we want to do that?

In this post we take a look at how Unix uses signals to tell processes when and how to shut down. We will also take a look at how Ruby handles these shutdown signals and how you can ensure your program will do the right thing.

Keep Reading “License to SIGKILL” on SitePoint