浏览代码

LibC: shm_unlink() was making an unlink() syscall internally

I guess that tells us how well-tested the SHM implementation is.
Andreas Kling 5 年之前
父节点
当前提交
874ebbe4a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libraries/LibC/mman.cpp

+ 1 - 1
Libraries/LibC/mman.cpp

@@ -53,7 +53,7 @@ int shm_open(const char* name, int flags, mode_t mode)
 
 
 int shm_unlink(const char* name)
 int shm_unlink(const char* name)
 {
 {
-    int rc = syscall(SC_unlink, name);
+    int rc = syscall(SC_shm_close, name);
     __RETURN_WITH_ERRNO(rc, rc, -1);
     __RETURN_WITH_ERRNO(rc, rc, -1);
 }
 }
 }
 }