Skip to content

Commit

Permalink
Actually save all the files
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Jun 21, 2023
1 parent a7ecc71 commit 5ef4d1f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions library/std/src/sys/unix/process/process_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,12 @@ impl Command {
crate::sys_common::process::wait_with_output(proc, pipes)
}

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

0 comments on commit 5ef4d1f

Please sign in to comment.