Execute the code twice in succession. The second run prints the line "Nosuchfileordirectory," confirming that the Shared memory has been deleted.
连续执行代码两次,第二次执行会显示“ No such file or directory ”,这证明共享内存已经被删除了。
3
For example, a system call returning with Err#2 ENOENT (Nosuchfileordirectory) would indicate that the command is expecting to find a file or directory but can't and subsequently fails.