1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

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

I guess that tells us how well-tested the SHM implementation is.
This commit is contained in:
Andreas Kling 2019-11-09 22:17:34 +01:00
parent 06a80bcf69
commit 874ebbe4a5

View file

@ -53,7 +53,7 @@ int shm_open(const char* name, int flags, mode_t mode)
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);
}
}