File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ pub trait CommandExt {
48
48
/// This also means that all resources such as file descriptors and
49
49
/// memory-mapped regions got duplicated. It is your responsibility to make
50
50
/// sure that the closure does not violate library invariants by making
51
- /// invalid use of these duplicates.
51
+ /// invalid use of these duplicates. Moreover, POSIX demands that you only
52
+ /// perform operations that are explicitly documented as async-signal-safe.
52
53
///
53
54
/// When this closure is run, aspects such as the stdio file descriptors and
54
55
/// working directory have successfully been changed, so output to these
@@ -60,8 +61,8 @@ pub trait CommandExt {
60
61
/// Schedules a closure to be run just before the `exec` function is
61
62
/// invoked.
62
63
///
63
- /// This method should be unsafe, so it got deprecated in favor of the
64
- /// unsafe [`pre_exec`].
64
+ /// This method is stable and usable, but it should be unsafe. To fix
65
+ /// that, it got deprecated in favor of the unsafe [`pre_exec`].
65
66
///
66
67
/// [`pre_exec`]: #tymethod.pre_exec
67
68
#[ stable( feature = "process_exec" , since = "1.15.0" ) ]
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ pub trait CommandExt {
48
48
/// This also means that all resources such as file descriptors and
49
49
/// memory-mapped regions got duplicated. It is your responsibility to make
50
50
/// sure that the closure does not violate library invariants by making
51
- /// invalid use of these duplicates.
51
+ /// invalid use of these duplicates. Moreover, POSIX demands that you only
52
+ /// perform operations that are explicitly documented as async-signal-safe.
52
53
///
53
54
/// When this closure is run, aspects such as the stdio file descriptors and
54
55
/// working directory have successfully been changed, so output to these
@@ -60,8 +61,8 @@ pub trait CommandExt {
60
61
/// Schedules a closure to be run just before the `exec` function is
61
62
/// invoked.
62
63
///
63
- /// This method should be unsafe, so it got deprecated in favor of the
64
- /// unsafe [`pre_exec`].
64
+ /// This method is stable and usable, but it should be unsafe. To fix
65
+ /// that, it got deprecated in favor of the unsafe [`pre_exec`].
65
66
///
66
67
/// [`pre_exec`]: #tymethod.pre_exec
67
68
#[ stable( feature = "process_exec" , since = "1.15.0" ) ]
You can’t perform that action at this time.
0 commit comments