aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys/wait.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libsys/wait.2')
-rw-r--r--lib/libsys/wait.28
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libsys/wait.2 b/lib/libsys/wait.2
index 3c649f3dfa77..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 August 27, 2024
+.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.