Page MenuHomeFreeBSD

D61745.1795172072.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61745.1795172072.diff

diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2
--- a/lib/libsys/pdfork.2
+++ b/lib/libsys/pdfork.2
@@ -313,7 +313,7 @@
A debugger attached by
.Xr ptrace 2
can execute the
-.Fn waitpid
+.Xr waitpid 2
calls against the alive target regardless of the way
the target process was forked.
.Ss Interaction of Process Descriptors with other System Calls
@@ -357,7 +357,7 @@
descriptor is closed,
whether or not the zombie process is reaped by
.Fn pdwait ,
-.Fn wait6 ,
+.Xr wait6 2 ,
or similar system calls.
.Sh RETURN VALUES
.Fn pdfork
@@ -392,13 +392,13 @@
is detected,
and the child continues execution, same as the parent.
If this error must be handled, it is advisable to memoize the
-.Fn getpid
+.Xr getpid 2
result before the call to
.Fn pdfork
or
.Fn pdrfork ,
and compare it to the value returned by
-.Fn getpid
+.Xr getpid 2
after, to see if code is executing in parent or child.
.It Bq Er EINVAL
The signal number given to
@@ -502,10 +502,13 @@
.Xr close 2 ,
.Xr fork 2 ,
.Xr fstat 2 ,
+.Xr getpid 2 ,
.Xr kill 2 ,
.Xr kqueue 2 ,
.Xr poll 2 ,
.Xr wait4 2 ,
+.Xr wait6 2 ,
+.Xr waitpid 2 ,
.Xr capsicum 4 ,
.Xr procdesc 4
.Sh HISTORY

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 20, 10:54 AM (22 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41865418
Default Alt Text
D61745.1795172072.diff (1 KB)

Event Timeline