A prisoner committed to the county jail for examination, or upon conviction for a public offense, must be actually confined in the jail until legally discharged; and if the prisoner is permitted to go at large out of the jail, except by virtue of a legal order or process, it is an escape; provided, however, that during the pendency of a criminal proceeding, the court before which said proceeding is pending may make a legal order, good cause appearing therefor, for the removal of the prisoner from the county jail in custody of the sheriff. In courts where there is a marshal, the marshal shall maintain custody of such prisoner while the prisoner is in the court facility pursuant to such court order. The superior court of the county may make a legal order, good cause appearing therefor, for the removal of prisoners confined in the county jail, after conviction, in the custody of the sheriff.
If facilities are no longer available in the county jail due to crowded conditions, a sheriff may transfer a person committed to the county jail upon conviction for a public offense to facilities which are available in the city jail, as provided for in Section 4004.5.
4000
4000.5
4001
4001.1
4002
4003
4004
4004.5
4005
4006
4006.5
4007
4008
4009
4010
4011
4011.1
4011.2
4011.5
4011.6
4011.7
4011.8
4011.9
4011.10
4011.11
4012
4013
4014
4015
4016
4016.5
4017
4017.1
4017.5
4018
4018.1
4018.5
4018.6
4019
4019.1
4019.2
4019.3
4019.4
4019.5
4020
4020.4
4020.7
4020.8
4021
4022
4023
4023.5
4023.6
4024
4024.1
4024.2
4024.3
4024.4
4025
4025.5
4026
4027
4028
4029
4030
4031
4000.5
4001
4001.1
4002
4003
4004
4004.5
4005
4006
4006.5
4007
4008
4009
4010
4011
4011.1
4011.2
4011.5
4011.6
4011.7
4011.8
4011.9
4011.10
4011.11
4012
4013
4014
4015
4016
4016.5
4017
4017.1
4017.5
4018
4018.1
4018.5
4018.6
4019
4019.1
4019.2
4019.3
4019.4
4019.5
4020
4020.4
4020.7
4020.8
4021
4022
4023
4023.5
4023.6
4024
4024.1
4024.2
4024.3
4024.4
4025
4025.5
4026
4027
4028
4029
4030
4031