Modern trains have emergency brakes that passengers can activate from a special compartment or pull cord in the passenger car. There are also a few ways you can signal to a train's operator that danger is ahead and they need to apply the emergency brakes.