If the processus vaginalis remains patent, ie, the connection between the peritoneal cavity and tunica vaginalis fails to close, intestinal loops may protrude into the scrotum, causing a congenital inguinal hernia. The condition can be treated by surgery.