The fact that kill doesn't return anything on stderr is puzzling...I wish we would have used os.kill instead of shelling out to invoke kill.
Having said that, I wonder if a better way to simulate the situation you want to test here is to signal -9 without using process.disable.
We could do after checking that signal 0 has returned positively. That is ultimately the green flag that you can simulate the process crash.
The fact that kill doesn't return anything on stderr is puzzling...I wish we would have used os.kill instead of shelling out to invoke kill.
Having said that, I wonder if a better way to simulate the situation you want to test here is to signal -9 without using process.disable.
We could do after checking that signal 0 has returned positively. That is ultimately the green flag that you can simulate the process crash.