Simply because vfork() experienced spawned that youngster, it returned whilst essentially nonetheless executing in the mother or father's procedure Area, don't just corrupting the parent's stack, but producing two disparate sets of diagnostics to generally be printed by "downstream" code.Your primary is proper as-is, except you must eliminate the i