I have two processes, sharing a memory area for fast communication. Both processes run the following (error check removed):
int fd = open("/run/afile",