29-2806. Habeas corpus; disposition of cause.

When the judge shall have examined into the cause of the capture and detention of the person so brought before him, and shall be satisfied that the person is unlawfully imprisoned or detained, he shall forthwith discharge such prisoner from confinement. In case the person or persons applying for such writ shall be confined or detained in a legal manner, on a charge of having committed any crime or offense, the judge shall, at his discretion, commit, discharge or let to bail such person or persons, and if the judge shall deem the offense bailable, on the principles of law, he shall cause the person charged as aforesaid to enter into recognizance, with one or more sufficient securities, in such sum as the judge shall think reasonable, the circumstances of the prisoner and the nature of the offense charged considered, conditioned for his appearance at the next court where the offense is cognizable. The judge shall certify his proceedings, together with the recognizance, forthwith, to the proper court; and if the person or persons charged as aforesaid shall fail to enter into such recognizance, he or they shall be committed to prison by such judge.

Source:G.S.1873, c. 58, § 358, p. 805; R.S.1913, § 9252; C.S.1922, § 10281; C.S.1929, § 29-2806; R.S.1943, § 29-2806.