diff options
Diffstat (limited to 'lib/libsys/wait.2')
-rw-r--r-- | lib/libsys/wait.2 | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/libsys/wait.2 b/lib/libsys/wait.2 index 8b504e070b7a..eeddf77aeac7 100644 --- a/lib/libsys/wait.2 +++ b/lib/libsys/wait.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 24, 2022 +.Dd June 19, 2025 .Dt WAIT 2 .Os .Sh NAME @@ -273,6 +273,10 @@ Report the status of selected processes that have continued from a job control stop by receiving a .Dv SIGCONT signal. +.Xr ptrace 2 +can also cause a process to be continued, when a +.Dv PT_DETACH +request is issued to detach the debugger. .It Dv WNOHANG Do not block when there are no processes wishing to report status. @@ -450,7 +454,7 @@ value: .Bl -tag -width Ds .It Fn WIFCONTINUED status True if the process has not terminated, and -has continued after a job control stop. +has continued after a job control stop or detach of a debugger. This macro can be true only if the wait call specified the .Dv WCONTINUED option. @@ -605,9 +609,13 @@ must be checked against zero to determine if a process reported status. .Pp The .Fn wait -family of functions will not return a child process created with +family of functions will only return a child process created with .Xr pdfork 2 -unless specifically directed to do so by specifying its process ID. +if the calling process is not in +.Xr capsicum 4 +capability mode, and +.Nm +has been explicitly given the child's process ID. .Sh ERRORS The .Fn wait |