A jailer in Texas may owe his survival from an apparent heart attack to group of prisoners who saw him fall ill and busted out of a locked cell to call for help.

The jailer was watching the inmates in the basement of the Parker County courthouse in Weatherford June 23 when he lost consciousness and fell to the floor, WFAA-TV in Dallas reported Thursday.