child partitioning working in child.c