When the offense charged is not punishable with death, the officer serving the bench warrant must, if required, take the defendant before a magistrate in the county in which it is issued, or in which he is arrested, for the purpose of giving bail. If the defendant appears before such magistrate without the bench warrant having been served upon him, the magistrate shall deliver him into the custody of the sheriff for the purpose of immediate booking and the recording of identification data, whereupon the sheriff shall deliver the defendant back before the magistrate for the purpose of giving bail.
Ca. Pen. Code § 1284