17-29. Notice to interested parties.
When it appears from the return to the writ that the party named therein is in custody on any process, or by reason of any claim of right, under which any other person has an interest in continuing his imprisonment or restraint, no order shall be made for his discharge until it appears that the person so interested, or his attorney, if he have one, has had reasonable notice of the time and place at which such writ is returnable.