I want to write a program which parent has 6 children and each child have an id. (0 - maxchild-1) at first, the parent put the last child id -1(maxchild - 1) into the pipe a