When a person's dead is lying before him, he should eat in another house. If he does not have another house, he should construct a partition and eat. If he does not have the materials to make a partition, he should turn away his face and eat. Under no circumstances should he recline and eat or eat meat or drink wine.
He does not recite the blessing before eating, nor the grace after meals. Others do not recite the blessings for him, nor is he included in a quorum of three for the recitation of grace. He is free from the obligation to recite the Shema, pray, put on tefillin, or observe any of the mitzvot stated in the Torah.
On the Sabbath, he should recline, eat meat, and drink wine, recite the blessing before eating, and recite grace. Others may recite blessings for him. He is included in a quorum for grace and is obligated in all the mitzvot of the Torah with the exception of sexual relations.
Once the dead is buried, he is permitted to eat meat and drink a small amount of wine to help digest the food that he has eaten, but not in an unrestrained manner.