17-30. Notice to district attorney.

When it appears from the return that such party is detained upon any criminal accusation, the court or judge may, if he thinks proper, make no order for the discharge of such party until sufficient notice of the time and place at which the writ has been returned, or is made returnable, is given to the district attorney of the district in which the person prosecuting the writ is detained. (1868-9, c. 116, s. 13; Code, s. 1635; Rev., s. 1844; C.S., s. 2232; 1973, c. 47, s. 2.)