this post was submitted on 15 Jan 2026
615 points (88.4% liked)

Programmer Humor

28473 readers
1274 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] vogi@piefed.social 55 points 1 day ago (5 children)

Isn't that what SIGTERM is? A request to gracefully shutdown processes.

[–] 9point6@lemmy.world 24 points 1 day ago (3 children)

kill, and I swear to god if you're still there when I ps, I'm getting out the -9

[–] 69420@lemmy.world 16 points 1 day ago
alias murder="kill -9"
[–] marcos@lemmy.world 9 points 1 day ago

Yeah, by default kill sends sigterm, and not kill the process at all.

It's the correct behavior, sending sigkill by default would be harmful. Now take a look at how killall worked in Solaris (before it adopted GNU).

[–] toynbee@lemmy.world 3 points 1 day ago (1 children)
[–] 9point6@lemmy.world 2 points 1 day ago (1 children)

Okay that took me by surprise

I'll be sharing this

[–] toynbee@lemmy.world 1 points 1 day ago
[–] pewpew@feddit.it 13 points 1 day ago

Systemd waits until the services terminate before shutting down

[–] andyburke@fedia.io 8 points 1 day ago
[–] SlurpingPus@lemmy.world 1 points 1 day ago

I bet the GUI environments also have their own mechanisms to indicate that the app needs to close, before whipping out the signals.

[–] cannedtuna@lemmy.world 2 points 1 day ago (2 children)

How’s that differ from SIGHUP?

[–] pivot_root@lemmy.world 9 points 1 day ago

Historical context, delivery, and handling.

HUP—hang up—is sent to indicate the TTY is closed.
TERM—terminate— is sent by request.

What happens when received is usually up to the process. Most of them just leave the defaults, which is to exit.

[–] firelizzard@programming.dev 2 points 1 day ago

They’re different signals. The default handling is the same - terminate - but they’re triggered by different things and (if the process handles them) handled by separate handlers.