kubexit
kubexit copied to clipboard
Test process exists before signaling
Didn't realise to keep the error on this one unfortunately but this change fixes an edgecase where eg. Kubernetes signals the process to exit but its already gone at that point.
Using signal 0
means we just test if the process is still there and then when can proceed to give pipe in the actual signal we go