The curse of daksa (father-in-law of Shiva) was indirectly a blessing for Shiva.
It was due to the curse of Daksa, Shiva was deprived of his share in the oblations of Vedic sacrifices. Sri Visvanatha Cakravarti comments in this connection, that Lord Shiva was saved from the calamity of taking part with other demigods, who were all materialistic. Lord Shiva is the greatest devotee of the Supreme Personality of Godhead, and it is not fitting for him to eat or sit with materialistic persons like the demigods. Thus the curse of Daksa was indirectly a blessing, for Shiva would not have to eat or sit with other demigods, who were too materialistic. There is a practical example set for us by Gaurakisora dasa Babaji Maharaja, who used to sit on the side of a latrine to chant Hare Krishna. Many materialistic persons used to come and bother him and disturb his daily routine of chanting, so to avoid their company he used to sit by the side of a latrine, where materialistic persons would not go because of the filth and the obnoxious smell. However, Gaurakisora dasa Babaji Maharaja was so great that he was accepted as the spiritual master of such a great personality as His Divine Grace Om Vishnupada Sri Srimad Bhaktisiddhanta Sarasvati Gosvami Maharaja. The conclusion is that Lord Shiva behaved in his own way to avoid materialistic persons who might disturb him in his prosecution of devotional service.
Source: A.C. Bhaktivedanta Swami Prabhupada (2014 edition), “Srimad Bhagavatam”, Fourth Canto, Chapter 02 – Text 18