1199
Psychopath Dev (lemmy.world)
submitted 2 weeks ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 22 points 2 weeks ago

It's the number of the signal sent, 9 is for SIGKILL. You can send various signals with kill, and depending on how application was made it may react on all signals with dying, or meaningfully process most of them. Afaik, SIGKILL can't be processed by the app, and it always means just that: "die already".

Checked in Wikipedia, that's about right but there are more details I left out, mostly because didn't know about them, too: POSIX signals

[-] [email protected] 4 points 2 weeks ago

Thank you! That’s what I was looking for.

[-] [email protected] 7 points 2 weeks ago

In languages like C, your application code can register what is called a signal handler. These functions get called when the process receives a signal. You could do something like reload a config file for example, without the user needing to stop and restart the process.

this post was submitted on 08 Sep 2024
1199 points (99.2% liked)

Programmer Humor

19213 readers
332 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 1 year ago
MODERATORS