casualcore / casual

casual xatmi implementation
http://casual.laz.se
MIT License
7 stars 2 forks source link

Assasinate should only have 100% lethal contract, or non lethal #344

Closed lazan closed 2 weeks ago

lazan commented 5 months ago

To be able to make correct decisions in SM we need to know if we've ordered a lethal contract or not. We need to know if we have to wait for an process::Exit event or not.

Right now we have terminate that is not directly lethal. More like a "please exit when you can... or not". And this does not make sense in a "timeout context". Either one wants to let the server linger, or want it dead/stop process no matter what.

Hence we should have these "categories": linger:

lethal

OlofGullnas commented 5 months ago

Is there a use for a lethal variant along the lines of "please terminate in an orderly fashion, but if you don't terminate in a reasonable time you will be killed". I.e. first a SIGTERM and then a SIGKILL if the process does not exit.