Update shared_mem.c