Skip to content

Commit 3d64d41

Browse files
committed
docs: doc that signal-unsafe fns can be called after execve
1 parent bcbcb50 commit 3d64d41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unistd.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ impl ForkResult {
265265
/// # Safety
266266
///
267267
/// In a multithreaded program, only [async-signal-safe] functions like `pause`
268-
/// and `_exit` may be called by the child (the parent isn't restricted). Note
269-
/// that memory allocation may **not** be async-signal-safe and thus must be
270-
/// prevented.
268+
/// and `_exit` may be called by the child (the parent isn't restricted) until
269+
/// a call of `execve(2)`. Note that memory allocation may **not** be
270+
/// async-signal-safe and thus must be prevented.
271271
///
272272
/// Those functions are only a small subset of your operating system's API, so
273273
/// special care must be taken to only invoke code you can control and audit.

0 commit comments

Comments
 (0)