I thought trains use a dead-man switch, no?
Not precisely. They mostly use a “keep-alive” button that has to be pressed at regular intervals. Slight difference and it works well unless there’s something really wrong.
Passenger trains may be different, most of my experience is with freight trains.