You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an mmap is created with flags MAP_SHARED | MAP_ANONYMOUS, that mmap will be inherited by child processes, and any writes to the mmap in the child process should be visible in the parent process (and vice-versa).
This is currently not working, writes to shared anonymous mmaps are not visible in other processes sharing the mmap.
How to reproduce:
apply the following diff, then run test-shared-anon-mmap in the shell
This program is a minimal testcase that:
creates a MAP_SHARED | MAP_ANONYMOUS mmap
forks
the child process makes a write to the mmap, then exits
the parent process waits for the child to exit, then checks if the write the child made is visible in the parent process
If an mmap is created with flags MAP_SHARED | MAP_ANONYMOUS, that mmap will be inherited by child processes, and any writes to the mmap in the child process should be visible in the parent process (and vice-versa).
This is currently not working, writes to shared anonymous mmaps are not visible in other processes sharing the mmap.
How to reproduce:
apply the following diff, then run
test-shared-anon-mmap
in the shellThis program is a minimal testcase that:
The text was updated successfully, but these errors were encountered: