Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kimmax109866y@ewpratten yes. You can catch SIGTERM, but SIGKILL will terminate your process, doesn't matter if you decide to handle it or not.
A different story is when a signal becomes a zombie, you can find information on that online -
Ahh... The fine, subtle art of signal handling...
One of the many hidden rules is, to never make your program ignoring SIGTERM. If you catch it, use it to cleanly shut down your program.
Me: "Oh, I see the problem.... Ctrl ^C"
App: "Received interrupt signal. Ignoring."
Me: "That's not how this works. I tell you to quit, and you quit. M'kay pumpkin? ... Ctrl ^C Ctrl ^C Ctrl ^C ....."
App: "Received interrupt signal. Ignoring."
App: "Received interrupt signal. Ignoring."
App: "Received interrupt signal. Ignoring."
Me: "Stubborn piece of crap."
App: "Crash."
rant
dont-quit