Skip to content

Commit e023403

Browse files
committed
POSIX requires async signal safety for fork in signal handlers, not in general
1 parent 33ee99b commit e023403

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/libstd/sys/redox/ext/process.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ pub trait CommandExt {
4848
/// This also means that all resources such as file descriptors and
4949
/// memory-mapped regions got duplicated. It is your responsibility to make
5050
/// sure that the closure does not violate library invariants by making
51-
/// invalid use of these duplicates. Moreover, POSIX demands that you only
52-
/// perform operations that are explicitly documented as async-signal-safe.
51+
/// invalid use of these duplicates.
5352
///
5453
/// When this closure is run, aspects such as the stdio file descriptors and
5554
/// working directory have successfully been changed, so output to these

src/libstd/sys/unix/ext/process.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ pub trait CommandExt {
4848
/// This also means that all resources such as file descriptors and
4949
/// memory-mapped regions got duplicated. It is your responsibility to make
5050
/// sure that the closure does not violate library invariants by making
51-
/// invalid use of these duplicates. Moreover, POSIX demands that you only
52-
/// perform operations that are explicitly documented as async-signal-safe.
51+
/// invalid use of these duplicates.
5352
///
5453
/// When this closure is run, aspects such as the stdio file descriptors and
5554
/// working directory have successfully been changed, so output to these

0 commit comments

Comments
 (0)