section 767


767 A surety for a person who is bound by recognizance to appear may bring that person into the court at which he is required to appear at any time during the sittings thereof and before his trial and the surety may discharge his obligation under the recognizance by giving that person into the custody of the court, and the court shall thereupon commit that person to prison until he is discharged according to law.