Corrected shared memory (only blocking mode for now)