After the engines are past the signal, the optical detector senses the train and keeps the signal red. Nothing special has to be added to the rolling stock.