Closed lazan closed 2 weeks 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.
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