Skip to content

Commit f11b493

Browse files
committed
docs: doc that signal-unsafe fns can be called after execve
1 parent 862eee3 commit f11b493

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/pty.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ feature! {
334334
/// # Safety
335335
///
336336
/// In a multithreaded program, only [async-signal-safe] functions like `pause`
337-
/// and `_exit` may be called by the child (the parent isn't restricted). Note
338-
/// that memory allocation may **not** be async-signal-safe and thus must be
339-
/// prevented.
337+
/// and `_exit` may be called by the child (the parent isn't restricted) until
338+
/// a call of `execve(2)`. Note that memory allocation may **not** be
339+
/// async-signal-safe and thus must be prevented.
340340
///
341341
/// Those functions are only a small subset of your operating system's API, so
342342
/// special care must be taken to only invoke code you can control and audit.

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)