I am opening an executable from a C# program, which add some information to a Memory Mapped File. How could I signal the parent process that the information was added into the MMF and it can read it? The child process will be killed as soon as the parent read from the MMF.
I did try to set the Exited event on the process, but this is not a good solution, because I don't want my child process to close until the parent didn't read the information from the file. I set the parent process to WaitForExit() (to wait for the child process to finish), so it doesn't start reading from the MMF while the child didn't finish, but also I don't want a finish signal of the child process, I just want a signal that it added the info to the MMF.
How could I solve this?