Since vfork() experienced spawned that child, it returned even though basically nevertheless executing in the parent's method Room, not simply corrupting the parent's stack, but causing two disparate sets of diagnostics to generally be printed by "downstream" code. Your authentic is right as-is, apart from you should remove the issue https://stackballtapandsmash14082.blogoscience.com/42934355/the-basic-principles-of-fun-stack-ball-online-game