Pipes created between parents and children, but there is deadlock