wtfe²日本語

TurnOff.us

the real reason to not use sigkill

by Daniel StoriPublished: License: CC BY-NC-SA 4.0

Comic: the real reason to not use sigkill (TurnOff.us). Transcript below.

the real reason to not use sigkill © Daniel Stori · TurnOff.us · CC BY-NC-SA 4.0

Why it lands

Signal handling as a family drama. A process can catch SIGTERM and use the time to let its threads finish and clean up; SIGKILL cannot be caught or ignored, so nothing gets to say goodbye. The practical rule matches the comic: send SIGTERM, wait, and reach for SIGKILL only when that fails.

Transcript

  1. This is Bob. Bob is a Linux process.
  2. HI!
  3. Like any process, Bob has his threads, with whom he shares context, memories and love.
  4. And like all processes, inevitably sometime he will be killed. When we gracefully kill a process with a soft SIGTERM...
  5. ...we give him the chance to talk with his kids about it. So, the kids finish their tasks...
  6. ...and say goodbye
  7. to each other. That's a process life!
  8. On the other hand, when we brutally kill a process with a SIGKILL, we prevent them from finishing their job and say goodbye...
  9. ...and this is so SAD!
  10. DAD!!
  11. So please, DON'T use SIGKILL. Give the kids the chance to leave the kernel in peace. Be nice.
  12. Dad, where are we going?
  13. Dad, where are you?

Credits

Original
the real reason to not use sigkill — Daniel Stori, TurnOff.us

The English page shows the original image unmodified. The Japanese page shows an adaptation by wtfe²: the lettering was erased from the art and replaced with a Japanese translation. The adaptation is shared under the same license as the original.