Parent process with ID 1 does getpid() properly but fails to write anything while running, child process writes 'm' but the parents exits right before it completes.