diff --git a/src/pty.rs b/src/pty.rs index a41f817594..ab449e4ab7 100644 --- a/src/pty.rs +++ b/src/pty.rs @@ -334,9 +334,9 @@ feature! { /// # Safety /// /// In a multithreaded program, only [async-signal-safe] functions like `pause` -/// and `_exit` may be called by the child (the parent isn't restricted). Note -/// that memory allocation may **not** be async-signal-safe and thus must be -/// prevented. +/// and `_exit` may be called by the child (the parent isn't restricted) until +/// a call of `execve(2)`. Note that memory allocation may **not** be +/// async-signal-safe and thus must be prevented. /// /// Those functions are only a small subset of your operating system's API, so /// special care must be taken to only invoke code you can control and audit. diff --git a/src/unistd.rs b/src/unistd.rs index 9c803d8c9a..4bb715b707 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -265,9 +265,9 @@ impl ForkResult { /// # Safety /// /// In a multithreaded program, only [async-signal-safe] functions like `pause` -/// and `_exit` may be called by the child (the parent isn't restricted). Note -/// that memory allocation may **not** be async-signal-safe and thus must be -/// prevented. +/// and `_exit` may be called by the child (the parent isn't restricted) until +/// a call of `execve(2)`. Note that memory allocation may **not** be +/// async-signal-safe and thus must be prevented. /// /// Those functions are only a small subset of your operating system's API, so /// special care must be taken to only invoke code you can control and audit.