Nothing can be done to prevent this condition.
The long term effects of the disease depend on the underlying cause. For example, peritonitis that stems from a ruptured ovarian cyst will not have any long-term effects. If the condition is the result of infection, it may cause death.
There are generally no risks to others.