When it appears from the return that the party named therein is in custody on an order or process under which another person has an interest in continuing imprisonment or restraint of the party, no order shall be made for discharge of the party until it shall appear that the party so interested, or the attorney of the party so interested has had notice of the time and place at which the writ has been made returnable.
ORS 34.650