This sends term after kill instantaneously, not leaving time to the process to clean-up.
Ideally I would want a configurable timeout in-between the signals, unless the target PID dies earlier:
We also have the machinery to do that, called @GracefulTerminate()@ but the relevant code does not use it. From verify_processes.c:DoAllSignals():
EDIT: This was brought up again. A possible solution is to introduce a default delay of 2-3 seconds after sending the first signal. But that would be maximum delay. The agent should watch the signalled process, and not wait nor send the second signal if the PID disappears.