On the death of the husband or wife, or both, the homestead shall descend and vest in like manner as other real property of the deceased, and shall be governed by the same laws of descent and distribution, but it shall not be partitioned among the heirs of the deceased during the lifetime of the surviving husband or wife, or so long as the surviver† may elect to use or occupy the same as a homestead, or so long as the guardian of the minor children of the deceased may be permitted, under the order of the proper court having the jurisdiction, to use and occupy the same.