WOW i did not know this
int main(int argc, char **argv)
{
uint8_t *shared_memory = mmap(NULL, PAGESIZE,
PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
*shared_memory = 34;
if (fork() == 0)
{
*shared_memory = 15;
v = 80;
} else {
wait(NULL);
}
printf("Not shared. %i\\n", v);
printf("Shared. %i\\n", shared_memory);
}