@@ -137,9 +137,11 @@ libc_enum!{
137
137
/// Event for a stop before an exit. Unlike the waitpid Exit status program.
138
138
/// registers can still be examined
139
139
PTRACE_EVENT_EXIT ,
140
- /// STop triggered by a seccomp rule on a tracee.
140
+ /// Stop triggered by a seccomp rule on a tracee.
141
141
PTRACE_EVENT_SECCOMP ,
142
- // PTRACE_EVENT_STOP not provided by libc because it's defined in glibc 2.26
142
+ /// Stop triggered by the `INTERRUPT` syscall, or a group stop,
143
+ /// or when a new child is attached.
144
+ PTRACE_EVENT_STOP ,
143
145
}
144
146
}
145
147
@@ -401,7 +403,7 @@ pub fn kill(pid: Pid) -> Result<()> {
401
403
}
402
404
}
403
405
404
- /// Move the stopped tracee process forward by a single step as with
406
+ /// Move the stopped tracee process forward by a single step as with
405
407
/// `ptrace(PTRACE_SINGLESTEP, ...)`
406
408
///
407
409
/// Advances the execution of the process with PID `pid` by a single step optionally delivering a
@@ -411,11 +413,11 @@ pub fn kill(pid: Pid) -> Result<()> {
411
413
/// ```rust
412
414
/// use nix::sys::ptrace::step;
413
415
/// use nix::unistd::Pid;
414
- /// use nix::sys::signal::Signal;
416
+ /// use nix::sys::signal::Signal;
415
417
/// use nix::sys::wait::*;
416
418
/// fn main() {
417
- /// // If a process changes state to the stopped state because of a SIGUSR1
418
- /// // signal, this will step the process forward and forward the user
419
+ /// // If a process changes state to the stopped state because of a SIGUSR1
420
+ /// // signal, this will step the process forward and forward the user
419
421
/// // signal to the stopped process
420
422
/// match waitpid(Pid::from_raw(-1), None) {
421
423
/// Ok(WaitStatus::Stopped(pid, Signal::SIGUSR1)) => {
0 commit comments