Skip to content

Commit

Permalink
POSIX requires async signal safety for fork in signal handlers, not i…
Browse files Browse the repository at this point in the history
…n general
  • Loading branch information
RalfJung committed Feb 3, 2019
1 parent 33ee99b commit e023403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/libstd/sys/redox/ext/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ pub trait CommandExt {
/// This also means that all resources such as file descriptors and
/// memory-mapped regions got duplicated. It is your responsibility to make
/// sure that the closure does not violate library invariants by making
/// invalid use of these duplicates. Moreover, POSIX demands that you only
/// perform operations that are explicitly documented as async-signal-safe.
/// invalid use of these duplicates.
///
/// When this closure is run, aspects such as the stdio file descriptors and
/// working directory have successfully been changed, so output to these
Expand Down
3 changes: 1 addition & 2 deletions src/libstd/sys/unix/ext/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ pub trait CommandExt {
/// This also means that all resources such as file descriptors and
/// memory-mapped regions got duplicated. It is your responsibility to make
/// sure that the closure does not violate library invariants by making
/// invalid use of these duplicates. Moreover, POSIX demands that you only
/// perform operations that are explicitly documented as async-signal-safe.
/// invalid use of these duplicates.
///
/// When this closure is run, aspects such as the stdio file descriptors and
/// working directory have successfully been changed, so output to these
Expand Down

0 comments on commit e023403

Please sign in to comment.