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:
Michael Kerrisk 2014-04-28 09:16:30 +02:00
parent 0bf534a940
commit 11adc9b9e2
1 changed files with 13 additions and 12 deletions

View File

@ -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