diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2015-10-10 09:29:47 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2015-10-10 09:29:47 +0000 |
commit | 92001b9497ae99ff4a5b7d4530da5440a00c4a6a (patch) | |
tree | 71f15ec0326af81711d733a2fc4503f4baed3c8c /lib | |
parent | b9a5c7b5954aac92d0b0508bc21b4ccc9a8ebd92 (diff) | |
download | src-test2-92001b9497ae99ff4a5b7d4530da5440a00c4a6a.tar.gz src-test2-92001b9497ae99ff4a5b7d4530da5440a00c4a6a.zip |
Notes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/shmctl.2 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libc/sys/shmctl.2 b/lib/libc/sys/shmctl.2 index 98ddf13e8ec4..788e79f1900d 100644 --- a/lib/libc/sys/shmctl.2 +++ b/lib/libc/sys/shmctl.2 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 17, 1995 +.Dd October 10, 2015 .Dt SHMCTL 2 .Os .Sh NAME @@ -72,15 +72,18 @@ or it must have superuser privileges. .It Dv IPC_RMID Removes the segment from the system. The removal will not take -effect until all processes having attached the segment have exited; -however, once the IPC_RMID operation has taken place, no further -processes will be allowed to attach the segment. +effect until all processes having attached the segment have exited. For the operation to succeed, the calling process's effective uid must match .Fa shm_perm.uid or .Fa shm_perm.cuid , or the process must have superuser privileges. +If the +.Va kern.ipc.shm_allow_removed +.Xr sysctl 3 +variable is set to 0, once the IPC_RMID operation has taken place, +no further processes will be allowed to attach the segment. .\" .It Dv SHM_LOCK .\" Locks the segment in memory. The calling process must have .\" superuser privileges. Not implemented in FreeBSD. |