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.