mirror of https://github.com/mkerrisk/man-pages
shmop.2: Move fork(2), execve(2), _exit(2) discussion to NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0bf534a940
commit
11adc9b9e2
25
man2/shmop.2
25
man2/shmop.2
|
@ -159,18 +159,6 @@ is set to the process-ID of the calling process.
|
|||
is decremented by one.
|
||||
If it becomes 0 and the segment is marked for deletion,
|
||||
the segment is deleted.
|
||||
.PP
|
||||
After a
|
||||
.BR fork (2),
|
||||
the child inherits the attached shared memory segments.
|
||||
|
||||
After an
|
||||
.BR execve (2),
|
||||
all attached shared memory segments are detached from the process.
|
||||
|
||||
Upon
|
||||
.BR _exit (2),
|
||||
all attached shared memory segments are detached from the process.
|
||||
.SH RETURN VALUE
|
||||
On success,
|
||||
.BR shmat ()
|
||||
|
@ -251,6 +239,19 @@ into
|
|||
prototypes; glibc2 has
|
||||
.IR "void\ *" .)
|
||||
.SH NOTES
|
||||
.PP
|
||||
After a
|
||||
.BR fork (2),
|
||||
the child inherits the attached shared memory segments.
|
||||
|
||||
After an
|
||||
.BR execve (2),
|
||||
all attached shared memory segments are detached from the process.
|
||||
|
||||
Upon
|
||||
.BR _exit (2),
|
||||
all attached shared memory segments are detached from the process.
|
||||
|
||||
Using
|
||||
.BR shmat ()
|
||||
with
|
||||
|
|
Loading…
Reference in New Issue