Skip to content

Commit 5ef4d1f

Browse files
committed
Actually save all the files
1 parent a7ecc71 commit 5ef4d1f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

library/std/src/sys/unix/process/process_unix.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,12 @@ impl Command {
172172
crate::sys_common::process::wait_with_output(proc, pipes)
173173
}
174174

175-
// WatchOS and TVOS can theoretically spawn processes using `posix_spawn*`
176-
// (although it just fails with a runtime error AFAICT, so we don't yet
177-
// support it in `std`), but forbid use of `fork`/`exec*`. It's unclear the
178-
// extent to which these is restricted, but the headers say
179-
// `__WATCHOS_PROHIBITED __TVOS_PROHIBITED`, so we go out of our way to
180-
// avoid containing any calls to them at all, to avoid linking against their
181-
// symbols on those targets.
175+
// WatchOS and TVOS headers mark the `fork`/`exec*` functions with
176+
// `__WATCHOS_PROHIBITED __TVOS_PROHIBITED`, and indicate that the
177+
// `posix_spawn*` functions should be used instead. It isn't entirely clear
178+
// what `PROHIBITED` means here (e.g. if calls to these functions are
179+
// allowed to exist in dead code), but it sounds bad, so we go out of our
180+
// way to avoid that all-together.
182181
#[cfg(any(target_os = "tvos", target_os = "watchos"))]
183182
const ERR_APPLE_TV_WATCH_NO_FORK_EXEC: Error = io::const_io_error!(
184183
ErrorKind::Unsupported,

0 commit comments

Comments
 (0)