Issues with mmap shared memory and lost changes after waitpid in a multi-process environment
I am working on a C program where I need to alter the behavior of a task (Tarefa). I am using fork to create a child process, which makes some changes that need to be communicated back to the parent process. However, I am encountering an issue where some changes seem to get lost after the waitpid call.