In case of sale the court may, with the consent of the person entitled to an estate for life, or for years, or of homestead, to the whole or any part of the premises, who is a party in the action, sell such estate with the rest. Such consent shall be in writing, signed by such person, and filed in the court wherein the proceedings for partition are pending.
If such persons are incapable of giving consent, the court may determine, taking into consideration the interests of all parties, whether such estate ought to be excluded from the sale or sold.
When such interest is sold, the value thereof may be ascertained and paid over in gross, or the proper proportion of the funds invested, and the income paid over to the party entitled thereto, during the continuance of the estate.
735 ILCS 5/17-120